mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-05 00:17:14 -04:00
Remove what remains of filetype auto-detection
This commit is contained in:
@@ -5,11 +5,6 @@ package syntax
|
||||
func init() {
|
||||
syntaxMap["c"] = &lazySyntax{init: func() []byte {
|
||||
return []byte(`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:]]*\\("
|
||||
|
||||
Reference in New Issue
Block a user