rubychan / coderay

Fast and easy syntax highlighting for selected languages, written in Ruby.
http://coderay.rubychan.de/
Other
847 stars 115 forks source link

Placeholder $ character in prepared statements (SQL) is marked invalid #231

Open CruzGil opened 5 years ago

CruzGil commented 5 years ago

When i parse prepared statement with sql parser, then the $ characters are marked as invalid.

For example:

INSERT INTO table (id, starttime, endtime) VALUES ($1, $2, $3)

Results in: image

I expect the dollar characters to be valid.