diff --git a/Assembly x86 AT&T.JSON-tmLanguage b/Assembly x86 AT&T.JSON-tmLanguage
index e126f26..9c656b1 100644
--- a/Assembly x86 AT&T.JSON-tmLanguage
+++ b/Assembly x86 AT&T.JSON-tmLanguage
@@ -104,7 +104,10 @@
"comment":"cpuid | grep -i 'xsaveopt'"
},
{ "name": "support.constant.preprocessor",
- "match": "(?
match
- (?<!\w)(#\s*(#|include|define|undef|if|ifn?def|else|elsif|endif|pragma|warning))|__(FILE|LINE|DATE|TIME(STAMP)?|STDC_(VERSION|HOSTED)?|GNUC|GNUC_MINOR|GNUC_PATCHLEVEL|VERSION|STRICT_ANSI|BASE_FILE|INCLUDE_LEVEL|OPTIMIZE|OPTIMIZE_SIZE|NO_INLINE|CHAR_UNSIGNED|CHAR_BIT|INT_SHORT|SCHAR_MAX|SHRT_MAX|INT_MAX|LONG_MAX|LONG_LONG_MAX|REGISTER_PREFIX|USER_LABEL_PREFIX)__\b
+ (?<!\w)(#(#|include|define|undef|if|ifn?def|else|elsif|endif|pragma|warning))|__(FILE|LINE|DATE|TIME(STAMP)?|STDC_(VERSION|HOSTED)?|GNUC|GNUC_MINOR|GNUC_PATCHLEVEL|VERSION|STRICT_ANSI|BASE_FILE|INCLUDE_LEVEL|OPTIMIZE|OPTIMIZE_SIZE|NO_INLINE|CHAR_UNSIGNED|CHAR_BIT|INT_SHORT|SCHAR_MAX|SHRT_MAX|INT_MAX|LONG_MAX|LONG_LONG_MAX|REGISTER_PREFIX|USER_LABEL_PREFIX)__\b
name
support.constant.preprocessor
+
+ match
+ (?<!\w)(#\s+(#|include|define|undef|if|ifn?def|else|elsif|endif|pragma|warning))\b
+ name
+ invalid.warnings
+
match
#.*$
diff --git a/messages/1.1.2.txt b/messages/1.1.2.txt
index ad15884..3c648cd 100644
--- a/messages/1.1.2.txt
+++ b/messages/1.1.2.txt
@@ -1,3 +1,5 @@
v1.1.2 !!ACHTUNG!!
The commenting shortcut will now insert `#:' instead of `# '. This was done to help prevent people accidentally putting directives in their comments.
+
+ I will also highlight valid directives if there is some number of spaces between it and the # that precedes it.