root/NEWT0/trunk/misc/xcode-support/newt.pblangspec

Revision 50, 1.3 kB (checked in by gnue, 3 years ago)

change indent

Line 
1/**
2   NewtonScript language specification.
3*/
4
5(
6    {
7        Identifier = newt;
8        Name = "NewtonScript";
9        Description = "NewtonScript";
10        BasedOn = "pbx_root_language";
11        SourceScannerClassName = PBXCPPSourceScanner;
12        SupportsIndentation = YES;
13        Indentation = {
14        };
15        SyntaxColoring = {
16            CaseSensitive = NO;
17            UnicodeSymbols = NO; // accept \uXXXX anywhere in a file, and return a single character (not yet supported!)
18            IndexedSymbols = YES;
19            CommentsCanBeNested = YES;
20            IdentifierStartChars = "_";
21            IdentifierChars = "_";
22            MultiLineComment = (
23                ( "/*", "*/" ),
24            );
25            String = (
26                ( "\"", "\"" )
27            );
28            EscapeCharacter = "\\";
29            SingleLineComment = (  "//" );
30            DocComment = "///";
31            DocCommentKeywordStart = "@";
32            DocCommentKeywords = (
33                "param",
34                "returns"
35            );
36            Keywords = (
37                "and",
38                "begin",
39                "break",
40                "by",
41                "call",
42                "collect",
43                "constant",
44                "depply",
45                "div",
46                "do",
47                "else",
48                "end",
49                "exists",
50                "for",
51                "foreach",
52                "func",
53                "global",
54                "if",
55                "in",
56                "inherited",
57                "local",
58                "loop",
59                "mod",
60                "native",
61                "not",
62                "onexception",
63                "or",
64                "repeat",
65                "return",
66                "self",
67                "then",
68                "to",
69                "try",
70                "until",
71                "while",
72                "with"
73            );
74            AltKeywords = (
75                "nil",
76                "true",
77                "@"
78            );
79        };
80    },
81)
Note: See TracBrowser for help on using the browser.