mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-05 08:27:19 -04:00
Many optimizations and new syntax files
This commit is contained in:
@@ -10,18 +10,19 @@ rules:
|
||||
- constant: "\\b(true|false)\\b"
|
||||
- statement: "(:[[:space:]]|\\[|\\]|:[[:space:]]+[|>]|^[[:space:]]*- )"
|
||||
- identifier: "[[:space:]][\\*&][A-Za-z0-9]+"
|
||||
- type: "([-\\w]+:\\s+)|([-\\w]+:$)"
|
||||
- type: "[-.\\w]+:"
|
||||
- statement: ":"
|
||||
- special: "(^---|^\\.\\.\\.|^%YAML|^%TAG)"
|
||||
|
||||
- constant.string:
|
||||
start: "\""
|
||||
end: "\""
|
||||
end: "(?<!\\\\)\""
|
||||
rules:
|
||||
- constant.specialChar: "\\\\."
|
||||
|
||||
- constant.string:
|
||||
start: "'"
|
||||
end: "'"
|
||||
end: "(?<!\\\\)'"
|
||||
rules:
|
||||
- constant.specialChar: "\\\\."
|
||||
|
||||
@@ -30,3 +31,4 @@ rules:
|
||||
end: "$"
|
||||
rules: []
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user