Skip to content

Commit bbea2a3

Browse files
authored
Fix highlighting for auto in C++ (zyedidia#3836)
1 parent b37fa2e commit bbea2a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/syntax/cpp.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ detect:
66

77
rules:
88
- identifier: "\\b[A-Z_][0-9A-Z_]*\\b"
9-
- type: "\\b(float|double|bool|char|int|short|long|enum|void|struct|union|typedef|(un)?signed|inline)\\b"
9+
- type: "\\b(auto|float|double|bool|char|int|short|long|enum|void|struct|union|typedef|(un)?signed|inline)\\b"
1010
- type: "\\b(((s?size)|((u_?)?int(8|16|32|64|ptr))|char(8|16|32))_t|wchar_t)\\b"
1111
- type: "\\b[a-z_][0-9a-z_]+(_t|_T)\\b"
1212
- type: "\\b(final|override)\\b"
13-
- statement: "\\b(auto|volatile|const(expr|eval|init)?|mutable|register|thread_local|static|extern|decltype|explicit|virtual)\\b"
13+
- statement: "\\b(volatile|const(expr|eval|init)?|mutable|register|thread_local|static|extern|decltype|explicit|virtual)\\b"
1414
- statement: "\\b(class|namespace|template|typename|this|friend|using|public|protected|private|noexcept)\\b"
1515
- statement: "\\b(concept|requires)\\b"
1616
- statement: "\\b(import|export|module)\\b"

0 commit comments

Comments
 (0)