summaryrefslogtreecommitdiff
path: root/admin/grammars
diff options
context:
space:
mode:
Diffstat (limited to 'admin/grammars')
-rw-r--r--admin/grammars/make.by19
-rw-r--r--admin/grammars/scheme.by5
2 files changed, 17 insertions, 7 deletions
diff --git a/admin/grammars/make.by b/admin/grammars/make.by
index 905166d221d..423c9529dec 100644
--- a/admin/grammars/make.by
+++ b/admin/grammars/make.by
@@ -54,15 +54,20 @@
%%
+;; Escape the ,@ below because the reader doesn't correctly detect
+;; old-style backquotes for this case. The backslashes can be removed
+;; once old-style backquotes are completely gone (probably in
+;; Emacs 28).
+
Makefile : bol newline (nil)
| bol variable
- ( ,@$2 )
+ ( \,@$2 )
| bol rule
- ( ,@$2 )
+ ( \,@$2 )
| bol conditional
- ( ,@$2 )
+ ( \,@$2 )
| bol include
- ( ,@$2 )
+ ( \,@$2 )
| whitespace ( nil )
| newline ( nil )
;
@@ -125,13 +130,13 @@ colons: COLON COLON ()
;
element-list: elements newline
- ( ,@$1 )
+ ( \,@$1 )
;
elements: element some-whitespace elements
- ( ,@$1 ,@$3 )
+ ( \,@$1 ,@$3 )
| element
- ( ,@$1 )
+ ( \,@$1 )
| ;;EMPTY
;
diff --git a/admin/grammars/scheme.by b/admin/grammars/scheme.by
index 91c7808e84c..76ded7faf61 100644
--- a/admin/grammars/scheme.by
+++ b/admin/grammars/scheme.by
@@ -20,6 +20,11 @@
%package semantic-scm-by
%provide semantic/bovine/scm-by
+%{
+(declare-function semantic-parse-region "semantic"
+ (start end &optional nonterminal depth returnonerror))
+}
+
%languagemode scheme-mode
%start scheme