File tree Expand file tree Collapse file tree 4 files changed +40
-5
lines changed
Expand file tree Collapse file tree 4 files changed +40
-5
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ This files contains the grammar to describe Object Pascal DFM Files.
3+
4+ @Version 1.0
5+ @Author David Hoyle
6+ @Date 05 Sep 2009
7+
8+ @usesemicolon
9+ **/
10+ <Goal> ::= <Object>;
11+ <Object> ::= 'OBJECT' <Identifier> ':' <Type> [ <Index> ]
12+ ( <Property> | <Object> )*
13+ 'END';
14+ <Property> ::= <QualifiedIdent> '=' <PropertyValue>;
15+ <PropertyValue> ::= <Identifier> |
16+ <StringLiteral> |
17+ <Number> |
18+ <Set> |
19+ <ItemList> |
20+ <BinaryData> |
21+ <PositionData>;
22+ <ItemList> ::= '<' <Item>* '>';
23+ <Item> ::= 'ITEM'
24+ ( <Property> )*
25+ 'END';
26+ <Type> ::= <Identifier>;
27+ <Set> ::= '[' [ <IdentList> ] ']';
28+ <PositionData> ::= '(' <Number>* ')';
29+ <IdentList> ::= <Identifier> [ ( ',' <Identifier> )* ];
30+ <QualifiedIdent> ::= <Identifier> [ ( '.' <Identifier> )* ];
31+ <Index> ::= '[' <Number> ']';
32+ <Identifier> ::= ? Valid object pascal identifier. ?;
33+ <StringLiteral> ::= ? Text startingh and ending with single doubles. ?;
34+ <Number> ::= [ '-' ] ? Pascal decimal or hexidecimal number. ?;
35+ <BinaryData> ::= ? Pascal brace comment { ... } ?;
Original file line number Diff line number Diff line change 1212 ],
1313 "contributes" : {
1414 "languages" : [{
15- "id" : " delphi " ,
16- "aliases" : [" Delphi" , " delphi" ],
15+ "id" : " dfm " ,
16+ "aliases" : [" Delphi Forms " , " delphi forms " ],
1717 "extensions" : [" .dfm" ],
1818 "configuration" : " ./language-configuration.json"
1919 }],
2020 "grammars" : [{
21- "language" : " delphi " ,
21+ "language" : " dfm " ,
2222 "scopeName" : " source.dfm" ,
23- "path" : " ./syntaxes/delphi .tmLanguage.json"
23+ "path" : " ./syntaxes/dfm .tmLanguage.json"
2424 }]
2525 }
2626}
File renamed without changes.
Original file line number Diff line number Diff line change 44* This folder contains all of the files necessary for your extension.
55* ` package.json ` - this is the manifest file in which you declare your language support and define
66the location of the grammar file that has been copied into your extension.
7- * ` syntaxes/delphi .tmLanguage.json ` - this is the Text mate grammar file that is used for tokenization.
7+ * ` syntaxes/dfm .tmLanguage.json ` - this is the Text mate grammar file that is used for tokenization.
88* ` language-configuration.json ` - this the language configuration, defining the tokens that are used for
99comments and brackets.
1010
You can’t perform that action at this time.
0 commit comments