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

Problem with coloring #18

Open
dtoffe opened this issue May 2, 2024 · 0 comments
Open

Problem with coloring #18

dtoffe opened this issue May 2, 2024 · 0 comments

Comments

@dtoffe
Copy link

dtoffe commented May 2, 2024

Installed product versions

  • Visual Studio Code: 1.89.0
  • This extension: 1.3.1

Description

The coloring is affected by a special '¬' character. Deleting the optional part with that character solves the problem and the coloring works fine again.
imagen

Steps to recreate

  1. Copy this snippet into an ebnf file:
special-symbol = '+' | '-' | '*' | '/' | '¬' | '=' | '<' | '>' | '[' | ']' | '.' | ',' | ':' |
                 ';' | '^' | '(' | ')' | '<>' | '<=' | '>=' | ':=' | '..' | 
                 'and' | 'array' | 'begin' | 'case' | 'const' | 'div' | 'do' | 'downto' | 'else' |
              'end' | 'file' | 'for' | 'function' | 'goto' | 'if' | 'in' | 'label' | 'mod' |
              'nil' | 'not' | 'of' | 'or' | 'packed' | 'procedure' | 'program' | 'record' |
              'repeat' | 'set' | 'then' | 'to' | 'type' | 'until' | 'var' | 'while' | 'with' ;

Current behavior

The coloring is incorrect when using the character '¬' in an ebnf option specification.

Expected behavior

The coloring should be correct for a rule containing that character.

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