Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Literal syntax highlighting bleeds into token definitions. #1

Open
kristofferrose opened this issue Mar 1, 2015 · 0 comments
Open

Comments

@kristofferrose
Copy link
Collaborator

The current "literal syntax" pattern is

"\\(⟦\\|⟩\\)[^⟦⟧⟨⟩]*\\(⟨\\|⟧\\)"

which unfortunately also bleeds into token definitions like

 token ID   | ⟨LetterEtc⟩+ (⟨LetterEtc⟩ | ⟨Digit⟩)* ;

(the first + is interpreted as syntax). The solution would be something that restricts the ⟩...⟨ variant to only happen between the ⟦...⟨ and ⟩...⟧ variants.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant