diff --git a/syntax/stxCsharp.go b/syntax/stxCsharp.go index 4f980d5..d5f4fab 100644 --- a/syntax/stxCsharp.go +++ b/syntax/stxCsharp.go @@ -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" diff --git a/syntax/stxHaskell.go b/syntax/stxHaskell.go index f9d12f6..feee50c 100644 --- a/syntax/stxHaskell.go +++ b/syntax/stxHaskell.go @@ -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: "\"" diff --git a/syntax/stxPhp.go b/syntax/stxPhp.go index 2b3083b..c1e8bef 100644 --- a/syntax/stxPhp.go +++ b/syntax/stxPhp.go @@ -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)"