mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-05 16:37:20 -04:00
Replace "constant.string.url" to reduce complexities
This commit is contained in:
+2
-1
@@ -21,7 +21,8 @@ rules:
|
|||||||
end: "<"
|
end: "<"
|
||||||
rules: []
|
rules: []
|
||||||
- symbol: "<|>"
|
- symbol: "<|>"
|
||||||
- constant.string.url: "(ftp(s)?|http(s)?|git|chrome)://[^ ]+"
|
# constant.number is used in place of constant.string.url to reduce complexity
|
||||||
|
- constant.number: "(ftp(s)?|http(s)?|git|chrome)://[^ ]+"
|
||||||
- comment: "<!--.+?-->"
|
- comment: "<!--.+?-->"
|
||||||
- preproc: "<!DOCTYPE.+?>"`)
|
- preproc: "<!DOCTYPE.+?>"`)
|
||||||
}}
|
}}
|
||||||
|
|||||||
+2
-1
@@ -17,7 +17,8 @@ rules:
|
|||||||
- identifier: "(alt|bgcolor|height|href|label|longdesc|name|onclick|onfocus|onload|onmouseover|size|span|src|style|target|type|value|width)="
|
- identifier: "(alt|bgcolor|height|href|label|longdesc|name|onclick|onfocus|onload|onmouseover|size|span|src|style|target|type|value|width)="
|
||||||
- constant.string: "\"[^\"]*\""
|
- constant.string: "\"[^\"]*\""
|
||||||
- constant.number: "(?i)#[0-9A-F]{6,6}"
|
- constant.number: "(?i)#[0-9A-F]{6,6}"
|
||||||
- constant.string.url: "(ftp(s)?|http(s)?|git|chrome)://[^ ]+"
|
# constant.number is used in place of constant.string.url to reduce complexity
|
||||||
|
- constant.number: "(ftp(s)?|http(s)?|git|chrome)://[^ ]+"
|
||||||
- comment: "<!--.+?-->"
|
- comment: "<!--.+?-->"
|
||||||
- default: "<\\?(php|=)\" end=\"\\?>"
|
- default: "<\\?(php|=)\" end=\"\\?>"
|
||||||
- identifier.macro: "([a-zA-Z0-9_-]+)\\("
|
- identifier.macro: "([a-zA-Z0-9_-]+)\\("
|
||||||
|
|||||||
Reference in New Issue
Block a user