mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-05 08:27:19 -04:00
Remove what remains of filetype auto-detection
This commit is contained in:
@@ -5,11 +5,6 @@ package syntax
|
||||
func init() {
|
||||
syntaxMap["json"] = &lazySyntax{init: func() []byte {
|
||||
return []byte(`filetype: json
|
||||
|
||||
detect:
|
||||
filename: "\\.json$"
|
||||
header: "^\\{$"
|
||||
|
||||
rules:
|
||||
- constant.number: "\\b[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\\b"
|
||||
- constant.number: "\\b[-+]?([0-9]+\\.[0-9]*|[0-9]*\\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
|
||||
|
||||
Reference in New Issue
Block a user