mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-08-28 21:06:31 -04:00
Remove "identifier.class" rule to reduce complexities
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ func init() {
|
||||
syntaxMap["csharp"] = &lazySyntax{init: func() []byte {
|
||||
return []byte(`filetype: csharp
|
||||
rules:
|
||||
- identifier.class: "class +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?"
|
||||
- identifier.macro: "class +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?"
|
||||
- identifier.var: "@[A-Za-z]+"
|
||||
- identifier: "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]"
|
||||
- type: "\\b(bool|byte|sbyte|char|decimal|double|float|IntPtr|int|uint|long|ulong|object|short|ushort|string|base|this|var|void)\\b"
|
||||
|
||||
@@ -15,7 +15,7 @@ rules:
|
||||
- symbol: "\\.|\\$"
|
||||
- constant.bool: "\\b(True|False)\\b"
|
||||
- constant: "(Nothing|Just|Left|Right|LT|EQ|GT)"
|
||||
- identifier.class: "[ ](Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)"
|
||||
- identifier: "[ ](Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)"
|
||||
- constant.string:
|
||||
start: "\""
|
||||
end: "\""
|
||||
|
||||
+2
-2
@@ -19,9 +19,9 @@ rules:
|
||||
- constant.string.url: "(ftp(s)?|http(s)?|git|chrome)://[^ ]+"
|
||||
- comment: "<!--.+?-->"
|
||||
- default: "<\\?(php|=)\" end=\"\\?>"
|
||||
- identifier.class: "([a-zA-Z0-9_-]+)\\("
|
||||
- identifier.macro: "([a-zA-Z0-9_-]+)\\("
|
||||
- preproc: "^\\s*(require|include|require_once|include_once)"
|
||||
- identifier.class: "[a-zA-Z\\\\]+::"
|
||||
- identifier.macro: "[a-zA-Z\\\\]+::"
|
||||
- identifier: "([A-Z][a-zA-Z0-9_]+)\\s"
|
||||
- identifier: "([A-Z0-9_]+)[;|\\s|\\)|,]"
|
||||
- keyword: "(global|public|private|protected|static|const)"
|
||||
|
||||
Reference in New Issue
Block a user