summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2005-06-23 16:19:22 +0000
committermichelou <michelou@epfl.ch>2005-06-23 16:19:22 +0000
commit8c15cfa18990081c50a563dc05a89556bc3bfcc1 (patch)
tree0f40dc2e9d4092e97d12827cfc2882f05b6b4a34
parent2c62148021670837a35f49b19f973025cbfea563 (diff)
downloadscala-8c15cfa18990081c50a563dc05a89556bc3bfcc1.tar.gz
scala-8c15cfa18990081c50a563dc05a89556bc3bfcc1.tar.bz2
scala-8c15cfa18990081c50a563dc05a89556bc3bfcc1.zip
*** empty log message ***
-rw-r--r--support/xcode/README25
-rw-r--r--support/xcode/Specifications/Scala.pbfilespec16
-rw-r--r--support/xcode/Specifications/Scala.pblangspec107
3 files changed, 148 insertions, 0 deletions
diff --git a/support/xcode/README b/support/xcode/README
new file mode 100644
index 0000000000..d13688eb13
--- /dev/null
+++ b/support/xcode/README
@@ -0,0 +1,25 @@
+* Introduction
+
+This directory contains additional specification files (.pb*spec) for
+Scala programs.
+
+More information about XCode (MacOSX) is available from:
+
+ http://www.apple.com/macosx/features/xcode/
+
+* Installation
+
+Copy the files "Specifications/Scala.*" to the following location:
+
+ /Library/Application support/Apple/Developer Tools/Specifications
+
+From that point on, loading a file whose name ends in ".scala" automatically
+turns Scala mode on.
+
+* Thanks
+
+This feature was contributed by Pascal Perez (pascal.perez@epfl.ch)
+
+* Version
+
+$Id$
diff --git a/support/xcode/Specifications/Scala.pbfilespec b/support/xcode/Specifications/Scala.pbfilespec
new file mode 100644
index 0000000000..e7739bfc62
--- /dev/null
+++ b/support/xcode/Specifications/Scala.pbfilespec
@@ -0,0 +1,16 @@
+/**
+ Scala source file specs.
+ 23rd of July 2005 - Pascal Perez (plperez@stanford.edu)
+*/
+
+(
+ {
+ Identifier = sourcecode.scala;
+ BasedOn = sourcecode;
+ Name = "Scala Files";
+ Extensions = (scala);
+ MIMETypes = ("text/scala");
+ ComputerLanguage = scala;
+ IsTextFile = YES;
+ }
+) \ No newline at end of file
diff --git a/support/xcode/Specifications/Scala.pblangspec b/support/xcode/Specifications/Scala.pblangspec
new file mode 100644
index 0000000000..b73ca19850
--- /dev/null
+++ b/support/xcode/Specifications/Scala.pblangspec
@@ -0,0 +1,107 @@
+/**
+ Scala language specification.
+ 23rd of July 2005 - Pascal Perez (plperez@stanford.edu)
+*/
+
+(
+ {
+ Identifier = scala;
+ Name = "Scala";
+ Description = "Scala";
+ BasedOn = "pbx_root_language";
+ SourceScannerClassName = PBXJavaSourceScanner;
+ SupportsIndentation = YES;
+ Indentation = {
+ };
+ SyntaxColoring = {
+ CaseSensitive = YES;
+ UnicodeSymbols = YES;
+ UnicodeEscapes = YES; // accept \uXXXX anywhere in a file, and return a single character (not yet supported!)
+ IndexedSymbols = YES;
+ CommentsCanBeNested = NO;
+ IdentifierStartChars = "_";
+ IdentifierChars = "_$";
+ EscapeCharacter = "\\";
+ String = (
+ ( "\"", "\"" )
+ );
+ Character = (
+ ( "'", "'" )
+ );
+ MultiLineComment = (
+ ( "/*", "*/" )
+ );
+ SingleLineComment = ( "//" );
+ DocComment = "*";
+ DocCommentKeywords = (
+ "@author",
+ "@beaninfo",
+ "@deprecated",
+ "@docRoot",
+ "@exception",
+ "@inheritDoc",
+ "@link",
+ "@linkplain",
+ "@param",
+ "@return",
+ "@see",
+ "@serial",
+ "@serialData",
+ "@serialField",
+ "@since",
+ "@throws",
+ "@value",
+ "@version"
+ );
+ Keywords = (
+ "abstract",
+ "case",
+ "catch",
+ "class",
+ "def",
+ "do",
+ "else",
+ "extends",
+ "false",
+ "final",
+ "finally",
+ "for",
+ "if",
+ "implicit",
+ "import",
+ "match",
+ "new",
+ "null",
+ "object",
+ "override",
+ "package",
+ "private",
+ "protected",
+ "return",
+ "sealed",
+ "super",
+ "this",
+ "throw",
+ "trait",
+ "try",
+ "true",
+ "type",
+ "val",
+ "var",
+ "while",
+ "with",
+ "yield",
+ "-",
+ ":",
+ "=",
+ "=>",
+ "<-",
+ "<:",
+ ">:",
+ "#",
+ "@"
+ );
+ };
+ },
+)
+