markwatkinson / luminous

Accurate and powerful syntax highlighting library
http://luminous.asgaard.co.uk
GNU Lesser General Public License v2.1
50 stars 5 forks source link

Trigraphs in C #13

Open markwatkinson opened 13 years ago

markwatkinson commented 13 years ago

C scanner should recognise trigraph sequences, e.g.

 // Will the next line be executed????????????????/
 a++;

the last '??/' is a trigraph which is synonymous with '\', which means the newline is escaped so the whole block is a single line comment.

http://en.wikipedia.org/wiki/Digraphs_and_trigraphs#C

Low priority as I expect they are rarely (if ever) used.