From: Dale Weiler Date: Sun, 21 Apr 2013 08:13:39 +0000 (+0000) Subject: Add jedit syntax highlighting support, thanks to LordHavoc (made some changes to... X-Git-Tag: before-library~30 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f3c04d0f37ce4a8e799f277e1d27303220bcdaed;p=xonotic%2Fgmqcc.git Add jedit syntax highlighting support, thanks to LordHavoc (made some changes to reflect gmqcc syntax more) --- diff --git a/syntax/README b/syntax/README index 940670a..5a5c4b4 100644 --- a/syntax/README +++ b/syntax/README @@ -12,6 +12,7 @@ Currently the supported text editors: gedit - uses gtksourceview sandy - uses gtksourceview nano + jedit Other text editors we plan to provide syntax highlighting configuration diff --git a/syntax/jedit/README b/syntax/jedit/README new file mode 100644 index 0000000..cfdf523 --- /dev/null +++ b/syntax/jedit/README @@ -0,0 +1,26 @@ +To use the jedit syntax highlighting install qc.xml to the syntax +directory for jedit + +# For Windows Users that directory is +C:\Users\username\.jedit\modes + +# For Linux users that directory is +/home/username/.jedit/modes + +# For Mac users that directory is +/Users/username/Library/jEdit/modes + +After the file is installed, a mode line needs to be added to +a file caled catalog in that same directory. + +Add the following line: + + +inside the block before the end tag . If the file +does not exist, you can simply make one and use the following: + + + + + + diff --git a/syntax/jedit/qc.xml b/syntax/jedit/qc.xml new file mode 100644 index 0000000..94b2d66 --- /dev/null +++ b/syntax/jedit/qc.xml @@ -0,0 +1,271 @@ + + + + + + + + + + + + + + + + + + + + + + + # + + + + + + + + + + + + + + + L" + " + + + " + " + + + L' + ' + + + ' + ' + + + + ??( + ??/ + ??) + ??' + ??< + ??! + ??> + ??- + ??= + + + <: + :> + <% + %> + %: + + + : + + + ( + + = + ! + + + - + / + * + > + < + % + & + | + ^ + ~ + ? + : + . + , + [ + ] + ) + } + { + ; + + + __FILE__ + __LINE__ + __DATE__ + __RANDOM__ + __RANDOM_LAST + __COUNT__ + __COUNT_LAST + + + + + + + + float + vector + string + entity + enum + .float + .int + .vector + .string + .entity + .void + typedef + + break + case + continue + default + do + else + for + goto + if + return + switch + void + while + nil + + FALSE + TRUE + ... + + + + + + + /**/ + + /**< + */ + + + /** + */ + + ///< + /// + + + + /*!< + */ + + + /*! + */ + + //!< + //! + + + + /* + */ + + // + + + + + + include\b + define\b + endif\b + elif\b + if\b + + + + + + undef + ifdef + ifndef + else + error + warning + pragma + $frame + $model + + + + + + + + < + > + + + " + " + + + + + + + + # + + + + + + + + + + defined + TRUE + FALSE + true + false + + +