whitespaces after # are allowed in C++ preprocessor statements

This commit is contained in:
evakili 2018-01-20 15:05:00 +03:30
parent fcb300dc51
commit a9ba86ce03
2 changed files with 30 additions and 1 deletions

View file

@ -259,7 +259,7 @@ export const language = <ILanguage>{
[/\[\[.*\]\]/, 'annotation'],
// Preprocessor directive
[/^\s*#\w+/, 'keyword'],
[/^\s*#\s*\w+/, 'keyword'],
// delimiters and operators
[/[{}()\[\]]/, '@brackets'],