Bug#846264: yacc/bison highlighting interprets semicolon in quotes as end of rule

James McCoy jamessan at debian.org
Sun Jan 28 20:40:57 UTC 2018


Hi Charles,

Given a simple file like

  %token SEMICOLON ";"

  %%
  iteration_statement:
  	"do" statement "while" "(" expression_in ")" ";" |
  	"while" "(" expression_in ")" statement ;

The ";" in iteration_statement ends the syntax highlighting for the
rule.  Since it's quoted, it shouldn't be treated as ending the rule.

Cheers,
-- 
James
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB



More information about the pkg-vim-maintainers mailing list