Skip to content

Commit 09593b9

Browse files
authored
Revamp pdl-highlighting and rename it
1 parent fef39b7 commit 09593b9

12 files changed

+120
-81
lines changed

PDL/pdl-highlighting/.gitattributes

-2
This file was deleted.

PDL/pdl-highlighting/.gitignore

-2
This file was deleted.

PDL/pdl-highlighting/language-configuration.json

-29
This file was deleted.

PDL/pdl-highlighting/syntaxes/pdl.tmLanguage

-39
This file was deleted.
File renamed without changes.

PDL/pdl-highlighting/README.md renamed to PDL/pdl-hl/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# pdl-highlighting README
1+
# pdl-hl README
22

3-
This is the README for your extension "pdl-highlighting". After writing up a brief description, we recommend including the following sections.
3+
This is the README for your extension "pdl-hl". After writing up a brief description, we recommend including the following sections.
44

55
## Features
66

PDL/pdl-highlighting/package.json renamed to PDL/pdl-hl/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "pdl-highlighting",
3-
"displayName": "PDL Highlighting",
4-
"description": "Custom syntax highlighting for .pdl files",
2+
"name": "pdl-hl",
3+
"displayName": "pdl-highlighting",
4+
"description": "Added syntax support for .pdl files",
55
"version": "0.0.1",
66
"engines": {
77
"vscode": "^1.77.0"
@@ -13,8 +13,8 @@
1313
"languages": [{
1414
"id": "pdl",
1515
"aliases": ["pdl", "pdl"],
16-
"extensions": [""],
17-
"configuration": "./language-configuration.json"
16+
"extensions": [".pdl"],
17+
"configuration": "./pdl-config.json"
1818
}],
1919
"grammars": [{
2020
"language": "pdl",

PDL/pdl-hl/pdl-config.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"comments": {
3+
"lineComment": "#",
4+
"blockComment": [ "#*", "*#" ]
5+
},
6+
"brackets": [
7+
["{", "}"],
8+
["[", "]"],
9+
["(", ")"]
10+
],
11+
"autoClosingPairs": [
12+
{ "open": "{", "close": "}" },
13+
{ "open": "[", "close": "]" },
14+
{ "open": "(", "close": ")" },
15+
{ "open": "'", "close": "'", "notIn": ["string"] }
16+
],
17+
"surroundingPairs": [
18+
["{", "}"],
19+
["[", "]"],
20+
["(", ")"],
21+
["\"", "\""],
22+
["'", "'"]
23+
]
24+
}
+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
3+
"name": "pdl",
4+
"patterns": [
5+
{
6+
"include": "#keywords"
7+
},
8+
{
9+
"include": "#types"
10+
},
11+
{
12+
"include": "#strings"
13+
},
14+
{
15+
"include": "#array"
16+
},
17+
{
18+
"include": "#constant"
19+
}
20+
],
21+
"repository": {
22+
"keywords": {
23+
"patterns": [{
24+
"name": "keyword.class.pdl",
25+
"match": "\\b(class|priv|ext|new)\\b"
26+
}]
27+
},
28+
"strings": {
29+
"name": "string.quoted.pdl",
30+
"begin": "'",
31+
"end": "'",
32+
"patterns": [{
33+
"name": "constant.character.escape.pdl",
34+
"match": "\\."
35+
}]
36+
},
37+
"types": {
38+
"match": "\\b(str|int|list|path)\\b",
39+
"name": "constant.language.pdl"
40+
},
41+
"constant": {
42+
"match": "\\b(?:true|false|null)\\b",
43+
"name": "constant.language.pdl"
44+
},
45+
"array": {
46+
"begin": "\\[",
47+
"beginCaptures": {
48+
"0": {
49+
"name": "punctuation.definition.array.begin.pdl"
50+
}
51+
},
52+
"end": "\\]",
53+
"endCaptures": {
54+
"0": {
55+
"name": "punctuation.definition.array.end.pdl"
56+
}
57+
},
58+
"name": "meta.structure.array.pdl",
59+
"patterns": [
60+
{
61+
"include": "#value"
62+
},
63+
{
64+
"match": ",",
65+
"name": "punctuation.separator.array.pdl"
66+
},
67+
{
68+
"match": "[^\\s\\]]",
69+
"name": "invalid.illegal.expected-array-separator.pdl"
70+
}
71+
]
72+
},
73+
"class": {
74+
"begin": "\\{",
75+
"beginCaptures": {
76+
"0": {
77+
"name": "punctuation.definition.dictionary.begin.pdl"
78+
}
79+
},
80+
"end": "\\}",
81+
"endCaptures": {
82+
"0": {
83+
"name": "punctuation.definition.dictionary.end.pdl"
84+
}
85+
}
86+
}
87+
},
88+
"scopeName": "source.pdl"
89+
}

ignore/.gitattributes

-2
This file was deleted.

0 commit comments

Comments
 (0)