mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-11 05:56:11 +00:00
52 lines
3.8 KiB
JSON
52 lines
3.8 KiB
JSON
|
{
|
||
|
"highlighter" :
|
||
|
[
|
||
|
{
|
||
|
"match" : "/(\\(|\\)|\\[|\\]|\\{|\\}|\\%|&|\\*|\\||<|>|/|\\+|-|\\=>|<<)/g",
|
||
|
"style" : "ve-ce-mwSynHi-symbol"
|
||
|
},
|
||
|
{
|
||
|
"match" : "/[\\W|^]((alias|and|begin|break|case|class|def|defined|do|else|elsif|end|ensure|for|if|in|module|while|next|not|or|redo|rescue|yield|retry|super|then|undef|unless|until|when|include))(?!\\w)/gm",
|
||
|
"style" : "ve-ce-mwSynHi-keyword"
|
||
|
},
|
||
|
{
|
||
|
"match" : "/[\\W|^]((__FILE__|__LINE__|false|nil|self|true|return))(?!\\w)/g",
|
||
|
"style" : "ve-ce-mwSynHi-metaconstant"
|
||
|
},
|
||
|
{
|
||
|
"match" : "/[\\W|^]((Array|Float|Integer|String|at_exit|autoload|binding|caller|catch|chop|chop!|chomp|chomp!|eval|exec|exit|exit!|fail|fork|format|gets|global_variables|gsub|gsub!|iterator?|lambda|load|local_variables|loop|open|p|print|printf|proc|putc|puts|raise|rand|readline|readlines|require|select|sleep|split|sprintf|srand|sub|sub!|syscall|system|trace_var|trap|untrace_var))(?!\\w)/g",
|
||
|
"style" : "ve-ce-mwSynHi-magicwords"
|
||
|
},
|
||
|
{
|
||
|
"match" : "/[\\W|^]((Abbrev|ArgumentError|Base64|Benchmark|Benchmark::Tms|Bignum|Binding|CGI|CGI::Cookie|CGI::HtmlExtension|CGI::QueryExtension|CGI::Session|CGI::Session::FileStore|CGI::Session::MemoryStore|Class|Comparable|Complex|ConditionVariable|Continuation|Data|Date|DateTime|Delegator|Dir|EOFError|ERB|ERB::Util|Enumerable|Enumerable::Enumerator|Errno|Exception|FalseClass|File|File::Constants|File::Stat|FileTest|FileUtils|FileUtils::DryRun|FileUtils::NoWrite|FileUtils::StreamUtils_|FileUtils::Verbose|Find|Fixnum|FloatDomainError|Forwardable|GC|Generator|Hash|IO|IOError|Iconv|Iconv::BrokenLibrary|Iconv::Failure|Iconv::IllegalSequence|Iconv::InvalidCharacter|Iconv::InvalidEncoding|Iconv::OutOfRange|IndexError|Interrupt|Kernel|LoadError|LocalJumpError|Logger|Logger::Application|Logger::Error|Logger::Formatter|Logger::LogDevice|Logger::LogDevice::LogDeviceMutex|Logger::Severity|Logger::ShiftingError|Marshal|MatchData|Math|Matrix|Method|Module|Mutex|NameError|NameError::message|NilClass|NoMemoryError|NoMethodError|NotImplementedError|Numeric|Object|ObjectSpace|Observable|PStore|PStore::Error|Pathname|Precision|Proc|Process|Process::GID|Process::Status|Process::Sys|Process::UID|Queue|Range|RangeError|Rational|Regexp|RegexpError|RuntimeError|ScriptError|SecurityError|Set|Shellwords|Signal|SignalException|SimpleDelegator|SingleForwardable|Singleton|SingletonClassMethods|SizedQueue|SortedSet|StandardError|StringIO|StringScanner|StringScanner::Error|Struct|Symbol|SyncEnumerator|SyntaxError|SystemCallError|SystemExit|SystemStackError|Tempfile|Test::Unit::TestCase|Test::Unit|Test|Thread|ThreadError|ThreadGroup|ThreadsWait|Time|TrueClass|TypeError|URI|URI::BadURIError|URI::Error|URI::Escape|URI::FTP|URI::Generic|URI::HTTP|URI::HTTPS|URI::InvalidComponentError|URI::InvalidURIError|URI::LDAP|URI::MailTo|URI::REGEXP|URI::REGEXP::PATTERN|UnboundMethod|Vector|YAML|ZeroDivisionError|Zlib|Zlib::BufError|Zlib::DataError|Zlib::Deflate|Zlib::Error|Zlib::GzipFile|Zlib::GzipFile::CRCError|Zlib::GzipFile::Error|Zlib::GzipFile::LengthError|Zlib::GzipFile::NoFooter|Zlib::GzipReader|Zlib::GzipWriter|Zlib::Inflate|Zlib::MemError|Zlib::NeedDict|Zlib::StreamEnd|Zlib::StreamError|Zlib::VersionError|Zlib::ZStream|HTML::Selector|HashWithIndifferentAccess|Inflector|Inflector::Inflections|Mime|Mime::Type|OCI8AutoRecover|TimeZone|XmlSimple))(?!\\w)/g",
|
||
|
"style" : "ve-ce-mwSynHi-typeconstructor"
|
||
|
},
|
||
|
{
|
||
|
"match" : "/(\\\\)/g",
|
||
|
"style" : "ve-ce-mwSynHi-escape"
|
||
|
},
|
||
|
{
|
||
|
"match" : "/(\\(|\\)|\\[|\\]|\\{|\\})/g",
|
||
|
"style" : "ve-ce-mwSynHi-bracket"
|
||
|
},
|
||
|
{
|
||
|
"match" : "/([`'\\\"][^]*?[`'\\\"])/g",
|
||
|
"style" : "ve-ce-mwSynHi-string"
|
||
|
},
|
||
|
{
|
||
|
"match" : "/\\W([0-9]+)(?!\\w)/g",
|
||
|
"style" : "ve-ce-mwSynHi-number"
|
||
|
},
|
||
|
{
|
||
|
"match" : "/(#.*$)/gm",
|
||
|
"style" : "ve-ce-mwSynHi-comment-single"
|
||
|
},
|
||
|
{
|
||
|
"match" : "/(\\=begin[^]*?\\=end)/g",
|
||
|
"style" : "ve-ce-mwSynHi-comment-multi"
|
||
|
}
|
||
|
],
|
||
|
"validator" :
|
||
|
[
|
||
|
]
|
||
|
}
|