diff options
| author | Daniel Robertson <danlrobertson89@gmail.com> | 2015-11-05 15:37:55 -0500 |
|---|---|---|
| committer | Daniel Robertson <danlrobertson89@gmail.com> | 2015-11-06 08:55:23 -0500 |
| commit | 7e7b238da6ebdfb3dd2fc7f0afb546fb02caf6c2 (patch) | |
| tree | 88ff493429c58d5dd108f4d203f84746ea5c1208 | |
| parent | 33253a8fd510dcd3ad0b64439664727f74a390d4 (diff) | |
Add common types and keywords to c-family syntax
Add a few more common types and C++ extensions to c-family
syntax file
| -rw-r--r-- | rc/c-family.kak | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rc/c-family.kak b/rc/c-family.kak index fdc6ed3d..bcf41105 100644 --- a/rc/c-family.kak +++ b/rc/c-family.kak @@ -95,14 +95,14 @@ def -hidden _c-family-indent-on-closing-curly-brace %[ # c specific addhl -group /c/code regex %{\<NULL\>|\<-?(0x[0-9a-fA-F]+|\d+)[fdiu]?|'((\\.)?|[^'\\])'} 0:value addhl -group /c/code regex "\<(void|char|short|int|long|signed|unsigned|float|double|size_t)\>" 0:type -addhl -group /c/code regex "\<(while|for|if|else|do|switch|case|default|goto|break|continue|return|sizeof)\>" 0:keyword +addhl -group /c/code regex "\<(while|for|if|else|do|switch|case|default|goto|asm|break|continue|return|sizeof)\>" 0:keyword addhl -group /c/code regex "\<(const|auto|register|inline|static|volatile|struct|enum|union|typedef|extern|restrict)\>" 0:attribute # c++ specific addhl -group /cpp/code regex %{\<(this|true|false|NULL|nullptr|)\>|\<-?(0x[0-9a-fA-F]+|\d+)[fdiu]?|'((\\.)?|[^'\\])'} 0:value addhl -group /cpp/code regex "\<(void|char|short|int|long|signed|unsigned|float|double|size_t|bool)\>" 0:type -addhl -group /cpp/code regex "\<(while|for|if|else|do|switch|case|default|goto|break|continue|return|using|try|catch|throw|new|delete|and|and_eq|or|or_eq|not|operator|explicit|(?:reinterpret|const|static|dynamic)_cast|sizeof|alignof|alignas|decltype)\>" 0:keyword -addhl -group /cpp/code regex "\<(const|constexpr|mutable|auto|namespace|inline|static|volatile|class|struct|enum|union|public|protected|private|template|typedef|virtual|friend|extern|typename|override|final)\>" 0:attribute +addhl -group /cpp/code regex "\<(while|for|if|else|do|switch|case|default|goto|asm|break|continue|return|using|try|catch|throw|new|delete|and|and_eq|or|or_eq|not|operator|explicit|(?:reinterpret|const|static|dynamic)_cast|sizeof|alignof|alignas|decltype)\>" 0:keyword +addhl -group /cpp/code regex "\<(const|constexpr|mutable|auto|noexcept|namespace|inline|static|volatile|class|struct|enum|union|public|protected|private|template|typedef|virtual|friend|extern|typename|override|final)\>" 0:attribute # objective-c specific addhl -group /objc/code regex %{\<(self|nil|id|super|TRUE|FALSE|YES|NO|NULL)\>|\<-?\d+[fdiu]?|'((\\.)?|[^'\\])'} 0:value |
