Skip to content

Commit

Permalink
Merge pull request #80 from crystal-lang-tools/keidax/symbol-endings
Browse files Browse the repository at this point in the history
Move plain symbols to the external scanner
  • Loading branch information
keidax authored Jan 4, 2025
2 parents 22bea30 + af5e30d commit a3da420
Show file tree
Hide file tree
Showing 6 changed files with 21,915 additions and 21,850 deletions.
13 changes: 2 additions & 11 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ module.exports = grammar({

$._modulo_operator,

$.unquoted_symbol,

$._string_literal_start,
$._delimited_string_contents,
$._string_literal_end,
Expand Down Expand Up @@ -745,17 +747,6 @@ module.exports = grammar({
),
)),

unquoted_symbol: $ => token(seq(
':',
token.immediate(
seq(
choice(ident_start, const_start),
repeat(ident_part),
optional(/[?!=]/),
),
),
)),

quoted_symbol: $ => seq(
':"',
seq(
Expand Down
58 changes: 4 additions & 54 deletions src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a3da420

Please sign in to comment.