Skip to content

Commit f7408f4

Browse files
authored
Add files via upload
1 parent 919b5cf commit f7408f4

File tree

7 files changed

+282
-0
lines changed

7 files changed

+282
-0
lines changed

PDL/pdl-hl/README.md

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# pdl-hl README
2+
3+
This is the README for your extension "pdl-hl". After writing up a brief description, we recommend including the following sections.
4+
5+
## Features
6+
7+
Describe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file.
8+
9+
For example if there is an image subfolder under your extension project workspace:
10+
11+
\!\[feature X\]\(images/feature-x.png\)
12+
13+
> Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.
14+
15+
## Requirements
16+
17+
If you have any requirements or dependencies, add a section describing those and how to install and configure them.
18+
19+
## Extension Settings
20+
21+
Include if your extension adds any VS Code settings through the `contributes.configuration` extension point.
22+
23+
For example:
24+
25+
This extension contributes the following settings:
26+
27+
* `myExtension.enable`: Enable/disable this extension.
28+
* `myExtension.thing`: Set to `blah` to do something.
29+
30+
## Known Issues
31+
32+
Calling out known issues can help limit users opening duplicate issues against your extension.
33+
34+
## Release Notes
35+
36+
Users appreciate release notes as you update your extension.
37+
38+
### 1.0.0
39+
40+
Initial release of ...
41+
42+
### 1.0.1
43+
44+
Fixed issue #.
45+
46+
### 1.1.0
47+
48+
Added features X, Y, and Z.
49+
50+
---
51+
52+
## Working with Markdown
53+
54+
You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
55+
56+
* Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux).
57+
* Toggle preview (`Shift+Cmd+V` on macOS or `Shift+Ctrl+V` on Windows and Linux).
58+
* Press `Ctrl+Space` (Windows, Linux, macOS) to see a list of Markdown snippets.
59+
60+
## For more information
61+
62+
* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
63+
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)
64+
65+
**Enjoy!**

PDL/pdl-hl/package.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "pdl-hl",
3+
"displayName": "pdl-highlighting",
4+
"description": "Added syntax support for .pdl files",
5+
"version": "0.0.1",
6+
"engines": {
7+
"vscode": "^1.77.0"
8+
},
9+
"categories": [
10+
"Programming Languages"
11+
],
12+
"contributes": {
13+
"languages": [{
14+
"id": "pdl",
15+
"aliases": ["pdl", "pdl"],
16+
"extensions": [".pdl"],
17+
"configuration": "./pdl-config.json"
18+
}],
19+
"grammars": [{
20+
"language": "pdl",
21+
"scopeName": "source.pdl",
22+
"path": "./syntaxes/pdl.tmLanguage.json"
23+
}]
24+
}
25+
}

PDL/pdl-hl/pdl-config.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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": "'''" },
16+
{ "open": "/*", "close": "*/", "notIn": ["string"] },
17+
{ "open": "'", "close": "'", "notIn": ["string"] }
18+
],
19+
"surroundingPairs": [
20+
["{", "}"],
21+
["[", "]"],
22+
["(", ")"],
23+
["'", "'"],
24+
["'''", "'''"],
25+
["/*", "*/"]
26+
]
27+
}
+115
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
3+
"name": "pdl",
4+
"patterns": [
5+
{"include": "#keywords"},
6+
{"include": "#types"},
7+
{"include": "#strings"},
8+
{"include": "#commentstring"},
9+
{"include": "#array"},
10+
{"include": "#constant"},
11+
{"include": "#comments"},
12+
{"include": "#docblock"}
13+
],
14+
"repository": {
15+
"keywords": {
16+
"patterns": [{
17+
"name": "keyword.class.pdl",
18+
"match": "\\b(class|priv|ext|new)\\b"
19+
}]
20+
},
21+
"strings": {
22+
"name": "string.quoted.pdl",
23+
"begin": "'",
24+
"end": "'",
25+
"patterns": [{
26+
"name": "constant.character.escape.pdl",
27+
"match": "\\."
28+
}]
29+
},
30+
"types": {
31+
"match": "\\b(str|int|list|bool)\\b",
32+
"name": "constant.language.pdl"
33+
},
34+
"constant": {
35+
"match": "\\b(?:true|false|null)\\b",
36+
"name": "constant.language.pdl"
37+
},
38+
"array": {
39+
"begin": "\\[",
40+
"beginCaptures": {
41+
"0": {
42+
"name": "punctuation.definition.array.begin.pdl"
43+
}
44+
},
45+
"end": "\\]",
46+
"endCaptures": {
47+
"0": {
48+
"name": "punctuation.definition.array.end.pdl"
49+
}
50+
},
51+
"name": "meta.structure.array.pdl",
52+
"patterns": [
53+
{
54+
"include": "#value"
55+
},
56+
{
57+
"match": ",",
58+
"name": "punctuation.separator.array.pdl"
59+
},
60+
{
61+
"match": "[^\\s\\]]",
62+
"name": "invalid.illegal.expected-array-separator.pdl"
63+
}
64+
]
65+
},
66+
"comments": {
67+
"patterns": [
68+
{
69+
"begin": "/\\*\\*(?!/)",
70+
"captures": {
71+
"0": {
72+
"name": "punctuation.definition.comment.pdl"
73+
}
74+
},
75+
"end": "\\*/",
76+
"name": "comment.block.documentation.pdl"
77+
},
78+
{
79+
"begin": "/\\*",
80+
"captures": {
81+
"0": {
82+
"name": "punctuation.definition.comment.pdl"
83+
}
84+
},
85+
"end": "\\*/",
86+
"name": "comment.block.pdl"
87+
},
88+
{
89+
"captures": {
90+
"1": {
91+
"name": "punctuation.definition.comment.pdl"
92+
}
93+
},
94+
"match": "(//).*$\\n?",
95+
"name": "comment.line.double-slash.pdl"
96+
}
97+
]
98+
},
99+
"docblock": {
100+
"begin": "'''",
101+
"beginCaptures": {
102+
"0": {
103+
"name": "comment.block.documentation.start.pdl"
104+
}
105+
},
106+
"end": "'''",
107+
"endCaptures": {
108+
"0": {
109+
"name": "comment.block.documentation.end.pdl"
110+
}
111+
}
112+
}
113+
},
114+
"scopeName": "source.pdl"
115+
}
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Welcome to your VS Code Extension
2+
3+
## What's in the folder
4+
5+
* This folder contains all of the files necessary for your extension.
6+
* `package.json` - this is the manifest file in which you declare your language support and define the location of the grammar file that has been copied into your extension.
7+
* `syntaxes/pdl.tmLanguage.json` - this is the Text mate grammar file that is used for tokenization.
8+
* `language-configuration.json` - this is the language configuration, defining the tokens that are used for comments and brackets.
9+
10+
## Get up and running straight away
11+
12+
* Make sure the language configuration settings in `language-configuration.json` are accurate.
13+
* Press `F5` to open a new window with your extension loaded.
14+
* Create a new file with a file name suffix matching your language.
15+
* Verify that syntax highlighting works and that the language configuration settings are working.
16+
17+
## Make changes
18+
19+
* You can relaunch the extension from the debug toolbar after making changes to the files listed above.
20+
* You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes.
21+
22+
## Add more language features
23+
24+
* To add features such as IntelliSense, hovers and validators check out the VS Code extenders documentation at https://code.visualstudio.com/docs
25+
26+
## Install your extension
27+
28+
* To start using your extension with Visual Studio Code copy it into the `<user home>/.vscode/extensions` folder and restart Code.
29+
* To share your extension with the world, read on https://code.visualstudio.com/docs about publishing an extension.

PDL/pdl-hl/vscode/launch.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// A launch configuration that launches the extension inside a new window
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
{
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"args": [
13+
"--extensionDevelopmentPath=${workspaceFolder}"
14+
]
15+
}
16+
]
17+
}

PDL/pdl-hl/vscodeignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.vscode/**
2+
.vscode-test/**
3+
.gitignore
4+
vsc-extension-quickstart.md

0 commit comments

Comments
 (0)