From 5b2c183efb929ecfce6fc8c8a307f4f1af69f279 Mon Sep 17 00:00:00 2001 From: michelou Date: Tue, 12 Apr 2005 13:46:21 +0000 Subject: - syntax highlighting for Scala. --- support/jedit/modes/README | 33 +++++ support/jedit/modes/scala.xml | 325 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 358 insertions(+) create mode 100644 support/jedit/modes/README create mode 100644 support/jedit/modes/scala.xml (limited to 'support') diff --git a/support/jedit/modes/README b/support/jedit/modes/README new file mode 100644 index 0000000000..04609548f5 --- /dev/null +++ b/support/jedit/modes/README @@ -0,0 +1,33 @@ +* Introduction + +This directory contains an additional syntax highlighting mode (.xml) for +Scala programs. You will need to add a mode catalog entry after placing the +mode file in an appropriate mode directory. + +More information about jEdit is available from: + + http://www.jedit.org/ + +* Installation + +Copy the file "scala.xml" to the following location: + + ~/.jedit/modes/ + +or alternatively to the location: + + /modes/ + +Add the following entry to the file "catalog" present in the same directory +as "scala.xml" you just copied. + + + +Restart the jEdit text editor. + +From that point on, loading a file whose name ends in ".scala" automatically +turns Scala mode on. + +* Version + +$Id$ diff --git a/support/jedit/modes/scala.xml b/support/jedit/modes/scala.xml new file mode 100644 index 0000000000..64e22f718d --- /dev/null +++ b/support/jedit/modes/scala.xml @@ -0,0 +1,325 @@ + + + + + + + + + + + + + + + + + + + + + + + /**/ + + + + /** + */ + + + + + /* + */ + + + + <!-- + + + <\/?\w* + + + + '[[:alnum:]]+[^',;})] + + + + " + " + + + ' + ' + + + // + + + + \[[^\[\]]*(\[[^\[\]]*(\[[^\[\]]*\][^\[\]]*)*\][^\[\]]*)*\] + + + <:\s*\w+(\.\w+)*(#\w+)? + >:\s*\w+(\.\w+)*(#\w+)? + + ) + = + ! + >= + >: + <= + <: + + + - + / + * + > + < + % + & + | + ^ + ~ + } + { + . + , + ; + ] + [ + ? + : + : + + + :\s*\w+(\.\w+)*(#\w+)? + + + ( + + + abstract + case + class + catch + def + do + else + extends + false + final + finally + for + if + import + new + null + object + override + package + private + protected + return + sealed + super + this + throw + trait + true + try + type + val + var + with + while + yield + => + + + Character + Integer + + + Boolean + boolean + Byte + byte + Char + char + Double + double + Float + float + Int + int + Long + long + Short + short + Unit + unit + + + Any + Array + Enumeration + Function + List + Option + PartialFunction + Ref + Some + Stream + String + Symbol + + + Iterable + Nil + None + Predef + + + + + + { + + + * + + + + <pre> + </pre> + + + + + <!-- + --> + + + + << + <= + < + + + + < + > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + " + " + + + + ' + ' + + + + + { + } + + + + >\s*; + + + > + + + + + + { + } + + + + <!-- + + <\/?\w* + + + + + -->\s*; + + + --> + + + + -- cgit v1.2.3