Skip to content

Commit

Permalink
Syntax: Removed \w for its definition because of pandoc/latex
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Künnemann committed Sep 9, 2024
1 parent a27a8ab commit 698e491
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion manual/grammar/grammar.ebnf
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ rules:
predicate_ref ::= FUNCTION((ident: predicate_identifier) '(' arguments? ')')
pre_defined ::= NULLARY_FUN(ident)
hexcolor ::= (''' @('#')? @(/[0-9a-fA-F]{1,6}/) ''') | (@('#')? @(/[0-9a-fA-F]{1,6}/))
ident ::= /[A-Za-z0-9]\w*/
ident ::= /[A-Za-z0-9][a-zA-Z0-9_*]*/
param ::= /[^"]*/
export_query ::= /(\\"|[^"])*/
natural ::= /[0-9]+/
Expand Down
6 changes: 1 addition & 5 deletions tree-sitter/tree-sitter-spthy/grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1042,10 +1042,6 @@ module.exports = grammar({
_term: $ => choice(
$.tuple_term,
$.mset_term,
// $.nat_term,
// $.xor_term,
// $.mult_term,
// $.exp_term,
$.nested_term,
$.nullary_fun,
$.binary_app,
Expand Down Expand Up @@ -1412,7 +1408,7 @@ module.exports = grammar({
)
),

ident: $ => /[A-Za-z0-9]\w*/,
ident: $ => /[A-Za-z0-9][a-zA-Z0-9_*]*/,

param: $ => /[^"]*/,

Expand Down

0 comments on commit 698e491

Please sign in to comment.