[quote=“ljbo3”]
[quote=“amphetamine”]
Actually, thinking about it, if that had worked then I wouldn’t have needed it because my “keyword.control.c++” style would’ve done it anyway! Duh![/quote]
Indeed. The problem I think is that the pattern does not capture the keyword “namespace”. Here is a patch that works for me against the C++.tmLanguage installed by version 2.0.1
[code]
— C++.tmLanguage-original 2013-01-03 13:03:50.000000000 +0100
+++ C++.tmLanguage 2013-01-03 13:03:58.000000000 +0100
@@ -337,6 +337,14 @@
begin
\b(namespace)\s+([A-Za-z_][_A-Za-z0-9:]\b)?+(?!\s?(;|=|,))
[/code][/quote]
Brilliant, thanks! That’s the one. 