Updated lang files

master
Yevgen Muntyan 2008-06-20 17:33:32 -05:00
parent b580baebe7
commit 19711a4557
8 changed files with 315 additions and 44 deletions

View File

@ -64,6 +64,7 @@
<context ref="def:in-comment"/>
<context ref="haddock:block-paragraph"/>
<context ref="haddock:directive"/>
<context ref="block-comment"/>
</include>
</context>
@ -137,7 +138,7 @@
</context>
<context once-only="true" extend-parent="false">
<match>.</match>
</context>
</context>
<context style-ref="def:error" extend-parent="false">
<match>.</match>
</context>

View File

@ -48,37 +48,113 @@
<context id="common-commands" style-ref="common-commands">
<prefix>\\</prefix>
<keyword>Alpha</keyword>
<keyword>Beta</keyword>
<keyword>Chi</keyword>
<keyword>Delta</keyword>
<keyword>Epsilon</keyword>
<keyword>Eta</keyword>
<keyword>Gamma</keyword>
<keyword>Iota</keyword>
<keyword>Kappa</keyword>
<keyword>Lambda</keyword>
<keyword>Leftarrow</keyword>
<keyword>Leftrightarrow</keyword>
<keyword>Mu</keyword>
<keyword>Nu</keyword>
<keyword>Omega</keyword>
<keyword>Phi</keyword>
<keyword>Pi</keyword>
<keyword>Psi</keyword>
<keyword>Rho</keyword>
<keyword>Rightarrow</keyword>
<keyword>Sigma</keyword>
<keyword>Tau</keyword>
<keyword>Zeta</keyword>
<keyword>alpha</keyword>
<keyword>appendix</keyword>
<keyword>begin</keyword>
<keyword>end</keyword>
<keyword>documentclass</keyword>
<keyword>newcommand</keyword>
<keyword>newenvironment</keyword>
<keyword>newtheorem</keyword>
<keyword>newfont</keyword>
<keyword>part</keyword>
<keyword>beta</keyword>
<keyword>bigcap</keyword>
<keyword>bigcup</keyword>
<keyword>cap</keyword>
<keyword>cdot</keyword>
<keyword>chapter</keyword>
<keyword>section</keyword>
<keyword>subsection</keyword>
<keyword>subsubsection</keyword>
<keyword>paragraph</keyword>
<keyword>subparagraph</keyword>
<keyword>page</keyword>
<keyword>equation</keyword>
<keyword>figure</keyword>
<keyword>table</keyword>
<keyword>footnote</keyword>
<keyword>footnotemark</keyword>
<keyword>footnotetext</keyword>
<keyword>mpfootnote</keyword>
<keyword>chi</keyword>
<keyword>cup</keyword>
<keyword>delta</keyword>
<keyword>documentclass</keyword>
<keyword>end</keyword>
<keyword>enumi</keyword>
<keyword>enumii</keyword>
<keyword>enumiii</keyword>
<keyword>enumiv</keyword>
<keyword>epsilon</keyword>
<keyword>equation</keyword>
<keyword>eta</keyword>
<keyword>exists</keyword>
<keyword>figure</keyword>
<keyword>footnote</keyword>
<keyword>footnotemark</keyword>
<keyword>footnotetext</keyword>
<keyword>forall</keyword>
<keyword>gamma</keyword>
<keyword>geq</keyword>
<keyword>in</keyword>
<keyword>int</keyword>
<keyword>iota</keyword>
<keyword>kappa</keyword>
<keyword>label</keyword>
<keyword>pageref</keyword>
<keyword>ref</keyword>
<keyword>lambda</keyword>
<keyword>ldots</keyword>
<keyword>leftarrow</keyword>
<keyword>leq</keyword>
<keyword>mpfootnote</keyword>
<keyword>mu</keyword>
<keyword>neq</keyword>
<keyword>newcommand</keyword>
<keyword>newenvironment</keyword>
<keyword>newfont</keyword>
<keyword>newtheorem</keyword>
<keyword>not</keyword>
<keyword>notin</keyword>
<keyword>nu</keyword>
<keyword>omega</keyword>
<keyword>onecolumn</keyword>
<keyword>page</keyword>
<keyword>pageref</keyword>
<keyword>paragraph</keyword>
<keyword>part</keyword>
<keyword>phi</keyword>
<keyword>pi</keyword>
<keyword>prod</keyword>
<keyword>psi</keyword>
<keyword>qquad</keyword>
<keyword>quad</keyword>
<keyword>ref</keyword>
<keyword>rho</keyword>
<keyword>rightarrow</keyword>
<keyword>section</keyword>
<keyword>setminus</keyword>
<keyword>sigma</keyword>
<keyword>subparagraph</keyword>
<keyword>subsection</keyword>
<keyword>subset</keyword>
<keyword>subseteq</keyword>
<keyword>subsetneq</keyword>
<keyword>subsubsection</keyword>
<keyword>subsubsubsection</keyword>
<keyword>sum</keyword>
<keyword>supset</keyword>
<keyword>supseteq</keyword>
<keyword>supsetneq</keyword>
<keyword>table</keyword>
<keyword>tau</keyword>
<keyword>times</keyword>
<keyword>twocolumn</keyword>
<keyword>varepsilon</keyword>
<keyword>varphi</keyword>
<keyword>zeta</keyword>
</context>
<context id="specials-symbol" style-ref="command">

View File

@ -52,8 +52,8 @@
</styles>
<definitions>
<define-regex id="cap-ident">[A-Z][A-Za-z0-9_']*</define-regex>
<define-regex id="low-ident">[a-z][A-Za-z0-9_']*</define-regex>
<define-regex id="cap-ident">\b[A-Z][A-Za-z0-9_']*</define-regex>
<define-regex id="low-ident">\b[a-z][A-Za-z0-9_']*</define-regex>
<define-regex id="char-esc">\\((\\|"|'|n|t|b|r)|[0-9]{3}|x[0-9a-fA-F]{2})</define-regex>
<context id="escape-seq" style-ref="escape">
<match>\%{char-esc}</match>

View File

@ -164,8 +164,11 @@ FIXME: =pod should require an empty line before/after, as written in perlpod
<!-- this assertion is shared by all the regex contexts to avoid wrong
highlighing of function calls, etc.
\b can't be used because of $var, @var, &func, %func. -->
<!-- FIXME I added { and ( to the list to fix #507075 and #535703. Someone
please look at it, it seems wrong. It probably should be a positive
look-behind. -->
<define-regex id="pattern-before" extended="true">
(?&lt;![a-zA-Z0-9@%])
(?&lt;![a-zA-Z0-9@%{(])
</define-regex>
<context id="in-pattern">

View File

@ -167,19 +167,23 @@
<keyword>default</keyword>
<keyword>die</keyword>
<keyword>do</keyword>
<keyword>doubleval</keyword>
<keyword>echo</keyword>
<keyword>else</keyword>
<keyword>elseif</keyword>
<keyword>empty</keyword>
<keyword>endfor</keyword>
<keyword>endforeach</keyword>
<keyword>endswitch</keyword>
<keyword>endwhile</keyword>
<keyword>extends</keyword>
<keyword>for</keyword>
<keyword>global</keyword>
<keyword>final</keyword>
<keyword>floatval</keyword>
<keyword>for</keyword>
<keyword>foreach</keyword>
<keyword>function</keyword>
<keyword>gettype</keyword>
<keyword>global</keyword>
<keyword>if</keyword>
<keyword>implements</keyword>
<keyword>import</keyword>
@ -187,28 +191,37 @@
<keyword>include_once</keyword>
<keyword>instanceof</keyword>
<keyword>interface</keyword>
<keyword>intval</keyword>
<keyword>list</keyword>
<keyword>namespace</keyword>
<keyword>new</keyword>
<keyword>or</keyword>
<keyword>print</keyword>
<keyword>print_r</keyword>
<keyword>private</keyword>
<keyword>protected</keyword>
<keyword>public</keyword>
<keyword>require</keyword>
<keyword>require_once</keyword>
<keyword>return</keyword>
<keyword>serialize</keyword>
<keyword>settype</keyword>
<keyword>static</keyword>
<keyword>strval</keyword>
<keyword>switch</keyword>
<keyword>throw</keyword>
<keyword>try</keyword>
<keyword>unserialize</keyword>
<keyword>unset</keyword>
<keyword>var</keyword>
<keyword>var_dump</keyword>
<keyword>var_export</keyword>
<keyword>while</keyword>
<keyword>xor</keyword>
</context>
<context id="operators" style-ref="operator" extend-parent="false">
<match>[-.~^@;:/%|\=\+\*\!\?&amp;&lt;&gt;]</match>
<match>[-.~^@,;:/%|\=\+\*\!\?&amp;&lt;&gt;()]</match>
</context>
<context id="type" style-ref="type">

View File

@ -127,39 +127,198 @@
</context>
<context id="builtins" style-ref="builtin">
<keyword>ARGF</keyword>
<keyword>ARGV</keyword>
<keyword>Abbrev</keyword>
<keyword>ArgumentError</keyword>
<keyword>Array</keyword>
<keyword>Base64</keyword>
<keyword>Benchmark::Tms</keyword>
<keyword>Benchmark</keyword>
<keyword>Bignum</keyword>
<keyword>Binding</keyword>
<keyword>CGI::Cookie</keyword>
<keyword>CGI::HtmlExtension</keyword>
<keyword>CGI::QueryExtension</keyword>
<keyword>CGI::Session::FileStore</keyword>
<keyword>CGI::Session::MemoryStore</keyword>
<keyword>CGI::Session</keyword>
<keyword>CGI</keyword>
<keyword>Class</keyword>
<keyword>Comparable</keyword>
<keyword>Complex</keyword>
<keyword>ConditionVariable</keyword>
<keyword>Continuation</keyword>
<keyword>DATA</keyword>
<keyword>Data</keyword>
<keyword>Date</keyword>
<keyword>DateTime</keyword>
<keyword>Delegator</keyword>
<keyword>Dir</keyword>
<keyword>ENV</keyword>
<keyword>EOFError</keyword>
<keyword>ERB::Util</keyword>
<keyword>ERB</keyword>
<keyword>Enumerable::Enumerator</keyword>
<keyword>Enumerable</keyword>
<keyword>Errno</keyword>
<keyword>Exception</keyword>
<keyword>FalseClass</keyword>
<keyword>File::Constants</keyword>
<keyword>File::Stat</keyword>
<keyword>File</keyword>
<keyword>FileTest</keyword>
<keyword>FileUtils::DryRun</keyword>
<keyword>FileUtils::NoWrite</keyword>
<keyword>FileUtils::StreamUtils</keyword>
<keyword>FileUtils::Verbose</keyword>
<keyword>FileUtils</keyword>
<keyword>Find</keyword>
<keyword>Fixnum</keyword>
<keyword>Float</keyword>
<keyword>FloatDomainError</keyword>
<keyword>Forwardable</keyword>
<keyword>GC</keyword>
<keyword>Generator</keyword>
<keyword>Hash</keyword>
<keyword>Integer</keyword>
<keyword>IO</keyword>
<keyword>IOError</keyword>
<keyword>Iconv::BrokenLibrary</keyword>
<keyword>Iconv::Failure</keyword>
<keyword>Iconv::IllegalSequence</keyword>
<keyword>Iconv::InvalidCharacter</keyword>
<keyword>Iconv::InvalidEncoding</keyword>
<keyword>Iconv::OutOfRange</keyword>
<keyword>Iconv</keyword>
<keyword>IndexError</keyword>
<keyword>Integer</keyword>
<keyword>Interrupt</keyword>
<keyword>Kernel</keyword>
<keyword>LoadError</keyword>
<keyword>LocalJumpError</keyword>
<keyword>Logger::Application</keyword>
<keyword>Logger::Error</keyword>
<keyword>Logger::Formatter</keyword>
<keyword>Logger::LogDevice::LogDeviceMutex</keyword>
<keyword>Logger::LogDevice</keyword>
<keyword>Logger::Severity</keyword>
<keyword>Logger::ShiftingError</keyword>
<keyword>Logger</keyword>
<keyword>Marshal</keyword>
<keyword>MatchData</keyword>
<keyword>Math</keyword>
<keyword>Matrix</keyword>
<keyword>Method</keyword>
<keyword>Module</keyword>
<keyword>Mutex</keyword>
<keyword>NameError::message</keyword>
<keyword>NameError</keyword>
<keyword>NilClass</keyword>
<keyword>NoMemoryError</keyword>
<keyword>NoMethodError</keyword>
<keyword>NotImplementedError</keyword>
<keyword>Numeric</keyword>
<keyword>Object</keyword>
<keyword>ObjectSpace</keyword>
<keyword>Observable</keyword>
<keyword>PStore::Error</keyword>
<keyword>PStore</keyword>
<keyword>Pathname</keyword>
<keyword>Precision</keyword>
<keyword>Proc</keyword>
<keyword>Process::GID</keyword>
<keyword>Process::Status</keyword>
<keyword>Process::Sys</keyword>
<keyword>Process::UID</keyword>
<keyword>Process</keyword>
<keyword>Queue</keyword>
<keyword>RUBY_PLATFORM</keyword>
<keyword>RUBY_RELEASE_DATE</keyword>
<keyword>RUBY_VERSION</keyword>
<keyword>Range</keyword>
<keyword>RangeError</keyword>
<keyword>Rational</keyword>
<keyword>Regexp</keyword>
<keyword>RegexpError</keyword>
<keyword>RuntimeError</keyword>
<keyword>STDERR</keyword>
<keyword>STDIN</keyword>
<keyword>STDOUT</keyword>
<keyword>ScriptError</keyword>
<keyword>SecurityError</keyword>
<keyword>Set</keyword>
<keyword>Shellwords</keyword>
<keyword>Signal</keyword>
<keyword>SignalException</keyword>
<keyword>SimpleDelegator</keyword>
<keyword>SingleForwardable</keyword>
<keyword>Singleton</keyword>
<keyword>SingletonClassMethods</keyword>
<keyword>SizedQueue</keyword>
<keyword>SortedSet</keyword>
<keyword>StandardError</keyword>
<keyword>String</keyword>
<keyword>StringIO</keyword>
<keyword>StringScanner::Error</keyword>
<keyword>StringScanner</keyword>
<keyword>Struct::Tms</keyword>
<keyword>Struct</keyword>
<keyword>Symbol</keyword>
<keyword>Symbol</keyword>
<keyword>ThreadGroup</keyword>
<keyword>SyncEnumerator</keyword>
<keyword>SyntaxError</keyword>
<keyword>SystemCallError</keyword>
<keyword>SystemExit</keyword>
<keyword>SystemStackError</keyword>
<keyword>Tempfile</keyword>
<keyword>Test::Unit</keyword>
<keyword>Test</keyword>
<keyword>Thread</keyword>
<keyword>ThreadError</keyword>
<keyword>ThreadGroup</keyword>
<keyword>ThreadsWait</keyword>
<keyword>Time</keyword>
<keyword>Timeout::Error</keyword>
<keyword>Timeout</keyword>
<keyword>TrueClass</keyword>
<keyword>TypeError</keyword>
<keyword>URI::BadURIError</keyword>
<keyword>URI::Error</keyword>
<keyword>URI::Escape</keyword>
<keyword>URI::FTP</keyword>
<keyword>URI::Generic</keyword>
<keyword>URI::HTTP</keyword>
<keyword>URI::HTTPS</keyword>
<keyword>URI::InvalidComponentError</keyword>
<keyword>URI::InvalidURIError</keyword>
<keyword>URI::LDAP</keyword>
<keyword>URI::MailTo</keyword>
<keyword>URI::REGEXP::PATTERN</keyword>
<keyword>URI::REGEXP</keyword>
<keyword>URI</keyword>
<keyword>UnboundMethod</keyword>
<keyword>Vector</keyword>
<keyword>YAML</keyword>
<keyword>ZeroDivisionError</keyword>
<keyword>Zlib::BufError</keyword>
<keyword>Zlib::DataError</keyword>
<keyword>Zlib::Deflate</keyword>
<keyword>Zlib::Error</keyword>
<keyword>Zlib::GzipFile::CRCError</keyword>
<keyword>Zlib::GzipFile::Error</keyword>
<keyword>Zlib::GzipFile::LengthError</keyword>
<keyword>Zlib::GzipFile::NoFooter</keyword>
<keyword>Zlib::GzipFile</keyword>
<keyword>Zlib::GzipReader</keyword>
<keyword>Zlib::GzipWriter</keyword>
<keyword>Zlib::Inflate</keyword>
<keyword>Zlib::MemError</keyword>
<keyword>Zlib::NeedDict</keyword>
<keyword>Zlib::StreamEnd</keyword>
<keyword>Zlib::StreamError</keyword>
<keyword>Zlib::VersionError</keyword>
<keyword>Zlib::ZStream</keyword>
<keyword>Zlib</keyword>
<keyword>fatal</keyword>
</context>
<context id="special-variables" style-ref="special-variable">
@ -173,9 +332,9 @@
<match extended="true">
\$([!$&amp;"'*+,./0:;&lt;=&gt;?@\`~1-9]|
-[0FIKadilpvw]|
deferr|defout|stderr|stdin|stdout|
DEBUG|FILENAME|KCODE|LOADED_FEATURES|LOAD_PATH|
PROGRAM_NAME|SAFE|VERBOSE)\b
(deferr|defout|stderr|stdin|stdout|
DEBUG|FILENAME|KCODE|LOADED_FEATURES|LOAD_PATH|
PROGRAM_NAME|SAFE|VERBOSE)\b)
</match>
</context>
@ -204,12 +363,15 @@
</context>
<context id="nil-value" style-ref="nil-value">
<keyword>nil</keyword>
<keyword>NIL</keyword>
<keyword>nil</keyword>
</context>
<context id="boolean" style-ref="boolean">
<keyword>false</keyword>
<keyword>true</keyword>
<keyword>FALSE</keyword>
<keyword>TRUE</keyword>
<keyword>false</keyword>
<keyword>true</keyword>
</context>
<define-regex id="underscore_num">\d(_?\d)*</define-regex>
@ -266,7 +428,7 @@
</context>
<!-- ruby strings do not end at line end,
so we cannot use def:string
so we cannot use def:string
(parts lifted from perl.lang) -->
<context id="double-quoted-string" style-ref="string">
<start>"</start>

View File

@ -125,10 +125,13 @@
<context id="here-doc">
<start extended="true" dupnames="true">
# (?&lt;!&lt;) and [^\s&lt;] are for not matching
# here-word (&lt;&lt;&lt;)
(?&lt;!&lt;)
&lt;&lt;-?\s*\\?(
\"(?P&lt;HDB&gt;\S+)\" | # "EOF"
\'(?P&lt;HDB&gt;\S+)\' | # 'EOF'
(?P&lt;HDB&gt;\S+) # EOF
\"(?P&lt;HDB&gt;[^\s&lt;]+)\" | # "EOF"
\'(?P&lt;HDB&gt;[^\s&lt;]+)\' | # 'EOF'
(?P&lt;HDB&gt;[^\s&lt;]+) # EOF
)$
</start>
<end>^\t*\%{HDB@start}$</end>

View File

@ -6,7 +6,7 @@
Copyright (C) 2004 Jeroen Zwartepoorte <jeroen@xs4all.nl>
Copyright (C) 2004 Alessio Frusciante <algol@firenze.linux.it>
Copyright (C) 2005 Brion Vibber <brion@pobox.com>
Copyright (C) 2007 Jürg Billeter <j@bitron.ch>
Copyright (C) 2007-2008 Jürg Billeter <j@bitron.ch>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
@ -80,6 +80,7 @@
<keyword>class</keyword>
<keyword>delegate</keyword>
<keyword>enum</keyword>
<keyword>errordomain</keyword>
<keyword>interface</keyword>
<keyword>namespace</keyword>
<keyword>signal</keyword>
@ -88,7 +89,9 @@
<!-- modifiers -->
<keyword>abstract</keyword>
<keyword>const</keyword>
<keyword>lock</keyword>
<keyword>dynamic</keyword>
<keyword>extern</keyword>
<keyword>inline</keyword>
<keyword>out</keyword>
<keyword>override</keyword>
<keyword>private</keyword>
@ -97,6 +100,7 @@
<keyword>ref</keyword>
<keyword>static</keyword>
<keyword>virtual</keyword>
<keyword>volatile</keyword>
<keyword>weak</keyword>
<!-- others -->
<keyword>as</keyword>
@ -107,8 +111,10 @@
<keyword>construct</keyword>
<keyword>continue</keyword>
<keyword>default</keyword>
<keyword>delete</keyword>
<keyword>do</keyword>
<keyword>else</keyword>
<keyword>ensures</keyword>
<keyword>finally</keyword>
<keyword>for</keyword>
<keyword>foreach</keyword>
@ -116,7 +122,9 @@
<keyword>if</keyword>
<keyword>in</keyword>
<keyword>is</keyword>
<keyword>lock</keyword>
<keyword>new</keyword>
<keyword>requires</keyword>
<keyword>return</keyword>
<keyword>set</keyword>
<keyword>sizeof</keyword>
@ -138,18 +146,23 @@
<keyword>double</keyword>
<keyword>float</keyword>
<keyword>int</keyword>
<keyword>int8</keyword>
<keyword>int16</keyword>
<keyword>int32</keyword>
<keyword>int64</keyword>
<keyword>long</keyword>
<keyword>short</keyword>
<keyword>size_t</keyword>
<keyword>ssize_t</keyword>
<keyword>string</keyword>
<keyword>uchar</keyword>
<keyword>uint</keyword>
<keyword>uint8</keyword>
<keyword>uint16</keyword>
<keyword>uint32</keyword>
<keyword>uint64</keyword>
<keyword>ulong</keyword>
<keyword>unichar</keyword>
<keyword>ushort</keyword>
</context>