Skip to content

Commit 39d9af3

Browse files
author
Damien Guard
committed
Allow single-line comments after preprocessor directives
1 parent fbbf5a1 commit 39d9af3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntaxes/csharp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@
628628
"name": "entity.name.function.preprocessor.cs"
629629
}
630630
},
631-
"match": "^\\s*#\\s*(if|else|elif|endif|define|undef|warning|error|line|pragma|region|endregion)\\b\\s*(.*)",
631+
"match": "^\\s*#\\s*(if|else|elif|endif|define|undef|warning|error|line|pragma|region|endregion)\\b\\s*(.*?)(?=$|\\/\\/)",
632632
"name": "meta.preprocessor.cs"
633633
}
634634
]

0 commit comments

Comments
 (0)