- Revised code example

- Added new lexers and revised existing
This commit is contained in:
Jesse Portnoy
2023-07-16 23:44:37 +01:00
parent 3e2e307e62
commit 571529568c
9 changed files with 55 additions and 5 deletions
+2
View File
@@ -2,9 +2,11 @@ filetype: c
detect:
filename: "(\\.(c|C)$|\\.(h|H)$|\\.ii?$|\\.(def)$)"
header: "^[[:space:]]*#[[:space:]]*(define|pragma|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)"
rules:
- identifier: "\\b[A-Z_][0-9A-Z_]+\\b"
- statement: "([a-zA-Z][a-zA-Z0-9_]*)[[:space:]]*\\("
- type: "\\b(float|double|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\\b"
- type: "\\b((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\\b"
- type.extended: "\\b(bool)\\b"