mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-03 07:37:13 -04:00
- Revised code example
- Added new lexers and revised existing
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user