mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-05 08:27:19 -04:00
Merge comment types for Ruby to reduce complexities
This commit is contained in:
+2
-4
@@ -16,17 +16,15 @@ rules:
|
|||||||
- constant.string: "\"([^\"]|(\\\\\"))*\"|%[QW]?\\{[^}]*\\}|%[QW]?\\([^)]*\\)|%[QW]?<[^>]*>|%[QW]?\\[[^]]*\\]|%[QW]?\\$[^$]*\\$|%[QW]?\\^[^^]*\\^|%[QW]?![^!]*!"
|
- constant.string: "\"([^\"]|(\\\\\"))*\"|%[QW]?\\{[^}]*\\}|%[QW]?\\([^)]*\\)|%[QW]?<[^>]*>|%[QW]?\\[[^]]*\\]|%[QW]?\\$[^$]*\\$|%[QW]?\\^[^^]*\\^|%[QW]?![^!]*!"
|
||||||
- special: "#\\{[^}]*\\}"
|
- special: "#\\{[^}]*\\}"
|
||||||
- constant.string: "'([^']|(\\\\'))*'|%[qw]\\{[^}]*\\}|%[qw]\\([^)]*\\)|%[qw]<[^>]*>|%[qw]\\[[^]]*\\]|%[qw]\\$[^$]*\\$|%[qw]\\^[^^]*\\^|%[qw]![^!]*!"
|
- constant.string: "'([^']|(\\\\'))*'|%[qw]\\{[^}]*\\}|%[qw]\\([^)]*\\)|%[qw]<[^>]*>|%[qw]\\[[^]]*\\]|%[qw]\\$[^$]*\\$|%[qw]\\^[^^]*\\^|%[qw]![^!]*!"
|
||||||
- comment: "#[^{].*$|#$"
|
- comment: "#+[^{].*$|#$"
|
||||||
- comment:
|
- comment:
|
||||||
start: "=begin"
|
start: "=begin"
|
||||||
end: "=end"
|
end: "=end"
|
||||||
rules: []
|
rules: []
|
||||||
- comment.bright: "##[^{].*$|##$"
|
|
||||||
- constant.macro:
|
- constant.macro:
|
||||||
start: "<<-?'?EOT'?"
|
start: "<<-?'?EOT'?"
|
||||||
end: "^EOT"
|
end: "^EOT"
|
||||||
rules: []
|
rules: []
|
||||||
- todo: "(XXX|TODO|FIXME|\\?\\?\\?)"
|
- todo: "(XXX|TODO|FIXME|\\?\\?\\?)"`)
|
||||||
- preproc.shebang: "^#!.+?( |$)"`)
|
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user