diff options
-rw-r--r-- | Makefile.distrib | 10 | ||||
-rw-r--r-- | support/scite/README | 42 | ||||
-rw-r--r-- | support/scite/scala.properties | 70 |
3 files changed, 122 insertions, 0 deletions
diff --git a/Makefile.distrib b/Makefile.distrib index 665e5b87c9..12611d7cc5 100644 --- a/Makefile.distrib +++ b/Makefile.distrib @@ -31,6 +31,12 @@ JEDIT_LIST += scala.xml JEDIT_LIST += README JEDIT_FILES = $(JEDIT_LIST:%=$(JEDIT_ROOT)/%) +# scite scala-mode +SCITE_ROOT = $(PROJECT_SUPPORTDIR)/scite +SCITE_LIST += scala.properties +SCITE_LIST += README +SCITE_FILES = $(SCITE_LIST:%=$(SCITE_ROOT)/%) + # textpad scala-mode TEXTPAD_ROOT = $(PROJECT_SUPPORTDIR)/textpad TEXTPAD_LIST += scala.syn @@ -40,6 +46,7 @@ TEXTPAD_FILES = $(TEXTPAD_LIST:%=$(TEXTPAD_ROOT)/%) # ultraedit scala-mode ULTRAEDIT_ROOT = $(PROJECT_SUPPORTDIR)/ultraedit ULTRAEDIT_LIST += scala.txt +ULTRAEDIT_LIST += README ULTRAEDIT_FILES = $(ULTRAEDIT_LIST:%=$(ULTRAEDIT_ROOT)/%) # scala test @@ -132,6 +139,9 @@ install : $(TOOLS_JAR_ARCHIVE) $(INSTALL) -m 755 -d $(INSTALL_SUPPORTDIR)/jedit $(strip $(MIRROR) -m 644 -p -C $(JEDIT_ROOT) $(JEDIT_LIST) \ $(INSTALL_SUPPORTDIR)/jedit) + $(INSTALL) -m 755 -d $(INSTALL_SUPPORTDIR)/scite + $(strip $(MIRROR) -m 644 -p -C $(SCITE_ROOT) $(SCITE_LIST) \ + $(INSTALL_SUPPORTDIR)/scite) $(INSTALL) -m 755 -d $(INSTALL_SUPPORTDIR)/textpad $(strip $(MIRROR) -m 644 -p -C $(TEXTPAD_ROOT) $(TEXTPAD_LIST) \ $(INSTALL_SUPPORTDIR)/textpad) diff --git a/support/scite/README b/support/scite/README new file mode 100644 index 0000000000..63f893b546 --- /dev/null +++ b/support/scite/README @@ -0,0 +1,42 @@ +* Introduction + +This directory contains an additional property file (.properties) for +Scala programs. + +More information about SciTE (Win32/Unix) is available from: + + http://scintilla.sourceforge.net/SciTE.html + +* Installation + +Copy the file "scala.properties" to the following location: + + /usr/share/scite/ (Unix) + %PROGRAMFILES%/wscite/ (Win32) + +Modify the following 4 entries to the file "SciTEGlobal.properties" present +in the same directory as "scala.properties" you just copied (line numbers in +the left margin are indicative): + + source.files=\ + ...;\ +244: *.scala + [..] + open.filter=\ + ...\ +284: $(filter.scala)\ + ... + [..] + menu.language=\ + ...\ +433: Scala|scala||\ + ... + [..] +489: import scala + +From that point on, loading a file whose name ends in ".scala" automatically +turns Scala mode on. + +* Version + +$Id$ diff --git a/support/scite/scala.properties b/support/scite/scala.properties new file mode 100644 index 0000000000..07b4b680c7 --- /dev/null +++ b/support/scite/scala.properties @@ -0,0 +1,70 @@ +# Define SciTE settings for Scala files.
+ +file.patterns.scala=*.scala
+
+filter.scala=Scala (scala)|*.scala|
+
+file.patterns.braces=$(file.patterns.scala)
+ +# We reuse the cpp lexer here
+lexer.$(file.patterns.scala)=cpp
+ +indent.size.$(file.patterns.scala)=2 +use.tabs.$(file.patterns.scala)=2 + +keywordclass.scala= \ +abstract case catch class def do else extends \ +false final finally for if import new object override \ +package private protected return sealed \ +throw trait true try type val var with while yield @ =>
+keywords.$(file.patterns.scala)=$(keywordclass.scala)
+
+keywords2.$(file.patterns.scala)=null super this
+ +keywords3.$(file.patterns.scala)=Array Console List String Unit +
+word.characters.$(file.patterns.scala)=$(chars.alpha)$(chars.numeric)_ +
+comment.block.scala=//~
+#comment.block.at.line.start.scala=1
+comment.stream.start.scala=/*
+comment.stream.end.scala=*/
+comment.box.start.scala=/*
+comment.box.middle.scala= *
+comment.box.end.scala= */
+#fold.comment=1
+#fold.preprocessor=1
+#fold.at.else=1
+
+statement.indent.$(file.patterns.scala)=5 case catch class do else finally \
+for if private protected try while
+statement.end.$(file.patterns.scala)=10 ;
+statement.lookback.$(file.patterns.scala)=20
+block.start.$(file.patterns.scala)=10 {
+block.end.$(file.patterns.scala)=10 }
+
+# Scala styles
+
+# Default
+#style.scala.32=$(font.base)
+# White space
+style.scala.0=fore:#808080
+# Comment
+style.scala.1=$(colour.code.comment.box),$(font.code.comment.box)
+# Line Comment
+style.scala.2=$(colour.code.comment.line),$(font.code.comment.line)
+# Doc comment
+style.scala.3=$(colour.code.comment.doc),$(font.code.comment.doc)
+# Number
+style.scala.4=$(colour.number)
+# Keyword
+style.scala.5=$(colour.keyword),bold
+# Double quoted string
+style.scala.6=$(colour.string)
+# Single quoted string
+style.scala.7=$(colour.char) +
+command.compile.*.scala=scalac $(FileNameExt)
+command.build.*.scala=scalac $(FileNameExt)
+command.go.*.scala=scala $(FileName)
+
|