Skip to content

Commit 964b5d3

Browse files
committed
rename to dfm all language files
1 parent 1bcf723 commit 964b5d3

File tree

4 files changed

+40
-5
lines changed

4 files changed

+40
-5
lines changed

dfm.grammar

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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 { ... } ?;

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
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
}

vsc-extension-quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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
66
the 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
99
comments and brackets.
1010

0 commit comments

Comments
 (0)