From 8c15cfa18990081c50a563dc05a89556bc3bfcc1 Mon Sep 17 00:00:00 2001 From: michelou Date: Thu, 23 Jun 2005 16:19:22 +0000 Subject: *** empty log message *** --- support/xcode/README | 25 ++++++ support/xcode/Specifications/Scala.pbfilespec | 16 ++++ support/xcode/Specifications/Scala.pblangspec | 107 ++++++++++++++++++++++++++ 3 files changed, 148 insertions(+) create mode 100644 support/xcode/README create mode 100644 support/xcode/Specifications/Scala.pbfilespec create mode 100644 support/xcode/Specifications/Scala.pblangspec 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", + "-", + ":", + "=", + "=>", + "<-", + "<:", + ">:", + "#", + "@" + ); + }; + }, +) + -- cgit v1.2.3