aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cedet/semantic/wisent/javascript.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/cedet/semantic/wisent/javascript.el')
-rw-r--r--lisp/cedet/semantic/wisent/javascript.el15
1 files changed, 4 insertions, 11 deletions
diff --git a/lisp/cedet/semantic/wisent/javascript.el b/lisp/cedet/semantic/wisent/javascript.el
index 7722c953609..4c93c0dc4fa 100644
--- a/lisp/cedet/semantic/wisent/javascript.el
+++ b/lisp/cedet/semantic/wisent/javascript.el
@@ -64,13 +64,13 @@ to this variable NAME."
64;; the tags created by the javascript parser. 64;; the tags created by the javascript parser.
65;; Local context 65;; Local context
66(define-mode-local-override semantic-get-local-variables 66(define-mode-local-override semantic-get-local-variables
67 javascript-mode () 67 js-mode ()
68 "Get local values from a specific context. 68 "Get local values from a specific context.
69This function overrides `get-local-variables'." 69This function overrides `get-local-variables'."
70 ;; Does javascript have identifiable local variables? 70 ;; Does javascript have identifiable local variables?
71 nil) 71 nil)
72 72
73(define-mode-local-override semantic-tag-protection javascript-mode (tag &optional parent) 73(define-mode-local-override semantic-tag-protection js-mode (tag &optional parent)
74 "Return protection information about TAG with optional PARENT. 74 "Return protection information about TAG with optional PARENT.
75This function returns on of the following symbols: 75This function returns on of the following symbols:
76 nil - No special protection. Language dependent. 76 nil - No special protection. Language dependent.
@@ -85,14 +85,14 @@ The default behavior (if not overridden with `tag-protection'
85is to return a symbol based on type modifiers." 85is to return a symbol based on type modifiers."
86 nil) 86 nil)
87 87
88(define-mode-local-override semantic-analyze-scope-calculate-access javascript-mode (type scope) 88(define-mode-local-override semantic-analyze-scope-calculate-access js-mode (type scope)
89 "Calculate the access class for TYPE as defined by the current SCOPE. 89 "Calculate the access class for TYPE as defined by the current SCOPE.
90Access is related to the :parents in SCOPE. If type is a member of SCOPE 90Access is related to the :parents in SCOPE. If type is a member of SCOPE
91then access would be 'private. If TYPE is inherited by a member of SCOPE, 91then access would be 'private. If TYPE is inherited by a member of SCOPE,
92the access would be 'protected. Otherwise, access is 'public." 92the access would be 'protected. Otherwise, access is 'public."
93 nil) 93 nil)
94 94
95(define-mode-local-override semantic-ctxt-current-symbol javascript-mode (&optional point) 95(define-mode-local-override semantic-ctxt-current-symbol js-mode (&optional point)
96 "Return the current symbol the cursor is on at POINT in a list. 96 "Return the current symbol the cursor is on at POINT in a list.
97This is a very simple implementation for Javascript symbols. It 97This is a very simple implementation for Javascript symbols. It
98will at maximum do one split, so that the first part is seen as 98will at maximum do one split, so that the first part is seen as
@@ -117,13 +117,6 @@ This is currently needed for the mozrepl omniscient database."
117 117
118;;; Setup Function 118;;; Setup Function
119;; 119;;
120;; Since javascript-mode is an alias for js-mode, let it inherit all
121;; the overrides.
122(define-child-mode js-mode javascript-mode)
123
124;; Since javascript-mode is an alias for js-mode, let it inherit all
125;; the overrides.
126(define-child-mode js-mode javascript-mode)
127 120
128;; In semantic-imenu.el, not part of Emacs. 121;; In semantic-imenu.el, not part of Emacs.
129(defvar semantic-imenu-summary-function) 122(defvar semantic-imenu-summary-function)