aboutsummaryrefslogtreecommitdiffstats
path: root/admin/grammars/python.wy
diff options
context:
space:
mode:
authorStefan Monnier2021-03-07 01:58:16 -0500
committerStefan Monnier2021-03-07 01:58:16 -0500
commit468bb5ab7f949441f68c4133fcd5292dfbbfd83d (patch)
tree865d0697dc016cda1cfaf7b267fe6ddd7780e55d /admin/grammars/python.wy
parent856a0a913a1932e1bad8e44d34944ce7504b23ff (diff)
downloademacs-468bb5ab7f949441f68c4133fcd5292dfbbfd83d.tar.gz
emacs-468bb5ab7f949441f68c4133fcd5292dfbbfd83d.zip
* lisp/cedet/semantic/wisent: Use lexical-binding
* lisp/cedet/semantic/wisent/comp.el: lexical-binding. (wisent-defcontext): Make sure the vars are also dynbound in the files that `require` us. (wisent-state-actions, wisent-automaton-lisp-form): Use `obarray-make`. (wisent--compile-grammar): Rename from `wisent-compile-grammar`. (wisent-compile-grammar): Redefine as an obsolete function. (wisent-automaton-lisp-form): Avoid variable `state`. * lisp/cedet/semantic/grammar.el: Use lexical-binding. (semantic-grammar-require-form): New var. (semantic-grammar-header): Use it to provide new element `require-form`. (semantic-grammar-header-template): Use it. * lisp/cedet/semantic/wisent.el (wisent-compiled-grammar): New macro. * lisp/cedet/semantic/wisent/grammar.el (wisent-grammar-parsetable-builder): Use it in the generated code instead of the `wisent-compile-grammar` function. (wisent-grammar-mode): Set `semantic-grammar-require-form` so the generated ELisp files require `semantic/wisent` rather than `semantic/bovine`. * lisp/cedet/semantic/wisent/wisent.el: Use lexical-binding. * lisp/cedet/semantic/wisent/java-tags.el: Use lexical-binding. * lisp/cedet/semantic/wisent/python.el: Use lexical-binding. * lisp/cedet/semantic/wisent/javascript.el: Use lexical-binding. (semantic-ctxt-current-symbol): Remove unused var `symlist`. * admin/grammars/python.wy (wisent-python-EXPANDING-block): Declare dynbound var. * lisp/cedet/semantic/grammar-wy.el: Regenerate.
Diffstat (limited to 'admin/grammars/python.wy')
-rw-r--r--admin/grammars/python.wy3
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/grammars/python.wy b/admin/grammars/python.wy
index 9c8f4ac6a9c..22e85570dc1 100644
--- a/admin/grammars/python.wy
+++ b/admin/grammars/python.wy
@@ -97,6 +97,7 @@
97 (tag)) 97 (tag))
98(declare-function semantic-parse-region "semantic" 98(declare-function semantic-parse-region "semantic"
99 (start end &optional nonterminal depth returnonerror)) 99 (start end &optional nonterminal depth returnonerror))
100(defvar wisent-python-EXPANDING-block)
100} 101}
101 102
102%languagemode python-mode 103%languagemode python-mode
@@ -871,7 +872,7 @@ paren_class_list_opt
871paren_class_list 872paren_class_list
872 : PAREN_BLOCK 873 : PAREN_BLOCK
873 (let ((wisent-python-EXPANDING-block t)) 874 (let ((wisent-python-EXPANDING-block t))
874 (mapcar 'semantic-tag-name (EXPANDFULL $1 paren_classes))) 875 (mapcar #'semantic-tag-name (EXPANDFULL $1 paren_classes)))
875 ; 876 ;
876 877
877;; parameters: '(' [varargslist] ')' 878;; parameters: '(' [varargslist] ')'