added vscode extensions
This commit is contained in:
parent
7cde0829be
commit
26e2a50441
316 changed files with 37301 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
name: Bug report
|
||||
about: Create a report of a bug
|
||||
title: ''
|
||||
labels: bug
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
## Steps to reproduce:
|
||||
|
||||
<table><td>
|
||||
📝 <strong>Note:</strong> Remember to link to a repository or upload a code snippet that reproduces the issue as an attachment (or a code block if it’s short) to this issue: https://help.github.com/en/articles/file-attachments-on-issues-and-pull-requests
|
||||
</td></table>
|
||||
|
||||
```ejs
|
||||
<%# short code snippet that reproduces the issue goes here %>
|
||||
```
|
||||
|
||||
## Expected result:
|
||||
42
.vscode/extensions/digitalbrainstem.javascript-ejs-support-1.3.1/.vsixmanifest
vendored
Normal file
42
.vscode/extensions/digitalbrainstem.javascript-ejs-support-1.3.1/.vsixmanifest
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
|
||||
<Metadata>
|
||||
<Identity Language="en-US" Id="javascript-ejs-support" Version="1.3.1" Publisher="DigitalBrainstem"/>
|
||||
<DisplayName>EJS language support</DisplayName>
|
||||
<Description xml:space="preserve">2019 - EJS language support for Visual Studio Code.</Description>
|
||||
<Tags>EJS,embedded javascript,syntax highlighting,snippet</Tags>
|
||||
<Categories>Programming Languages</Categories>
|
||||
<GalleryFlags>Public</GalleryFlags>
|
||||
<Badges></Badges>
|
||||
<Properties>
|
||||
<Property Id="Microsoft.VisualStudio.Code.Engine" Value="^0.10.x" />
|
||||
<Property Id="Microsoft.VisualStudio.Code.ExtensionDependencies" Value="" />
|
||||
<Property Id="Microsoft.VisualStudio.Code.ExtensionPack" Value="" />
|
||||
<Property Id="Microsoft.VisualStudio.Code.LocalizedLanguages" Value="" />
|
||||
|
||||
<Property Id="Microsoft.VisualStudio.Services.Links.Source" Value="https://github.com/Digitalbrainstem/ejs-grammar.git" />
|
||||
<Property Id="Microsoft.VisualStudio.Services.Links.Getstarted" Value="https://github.com/Digitalbrainstem/ejs-grammar.git" />
|
||||
|
||||
<Property Id="Microsoft.VisualStudio.Services.Links.GitHub" Value="https://github.com/Digitalbrainstem/ejs-grammar.git" />
|
||||
|
||||
|
||||
<Property Id="Microsoft.VisualStudio.Services.Links.Support" Value="https://github.com/Digitalbrainstem/ejs-grammar/issues" />
|
||||
|
||||
|
||||
|
||||
<Property Id="Microsoft.VisualStudio.Services.GitHubFlavoredMarkdown" Value="true" />
|
||||
|
||||
|
||||
</Properties>
|
||||
<License>extension/LICENSE.txt</License>
|
||||
<Icon>extension/assets/icon.png</Icon>
|
||||
</Metadata>
|
||||
<Installation>
|
||||
<InstallationTarget Id="Microsoft.VisualStudio.Code"/>
|
||||
</Installation>
|
||||
<Dependencies/>
|
||||
<Assets>
|
||||
<Asset Type="Microsoft.VisualStudio.Code.Manifest" Path="extension/package.json" Addressable="true" />
|
||||
<Asset Type="Microsoft.VisualStudio.Services.Content.Details" Path="extension/README.md" Addressable="true" /><Asset Type="Microsoft.VisualStudio.Services.Content.Changelog" Path="extension/CHANGELOG.md" Addressable="true" /><Asset Type="Microsoft.VisualStudio.Services.Content.License" Path="extension/LICENSE.txt" Addressable="true" /><Asset Type="Microsoft.VisualStudio.Services.Icons.Default" Path="extension/assets/icon.png" Addressable="true" />
|
||||
</Assets>
|
||||
</PackageManifest>
|
||||
190
.vscode/extensions/digitalbrainstem.javascript-ejs-support-1.3.1/CHANGELOG.md
vendored
Normal file
190
.vscode/extensions/digitalbrainstem.javascript-ejs-support-1.3.1/CHANGELOG.md
vendored
Normal file
|
|
@ -0,0 +1,190 @@
|
|||
# CHANGE LOG #
|
||||
|
||||
## 1.3.1 ##
|
||||
|
||||
- Fix single lines with mutliple ejs tags.
|
||||
- Before: script would not capture inner tag causing " to be js not html.
|
||||
|
||||
```html
|
||||
<button class="<% ... %>"><% ... %></button>
|
||||
|
||||
```
|
||||
|
||||
## 1.3.0 ##
|
||||
|
||||
- Change ejs tag type so they stand out in html code.
|
||||
- Note: Will only show difference in some themes.
|
||||
- Add php blocking regex so valid php does not get triggered.
|
||||
- EJS tags inside of block comments will show as regular ejs tags now.
|
||||
|
||||
```html
|
||||
<% /* %> <-- Will be colored correctly
|
||||
Anything here will be commented out
|
||||
--> <% */ %>
|
||||
```
|
||||
|
||||
## 1.2.1 ##
|
||||
|
||||
- Add support for comment sections
|
||||
- Thanks to [@illz](https://github.com/illz) for verfication.
|
||||
|
||||
```html
|
||||
<% /* %>
|
||||
Anything here will be commented out
|
||||
<% */ %>
|
||||
```
|
||||
|
||||
## 1.2.0 ##
|
||||
|
||||
- Add Snippet support
|
||||
- Thanks to [@theranbrig](https://github.com/theranbrig) for initial snippet support.
|
||||
- If snippets are not working add the following to your setting.json file
|
||||
|
||||
```json
|
||||
"emmet.includeLanguages": {
|
||||
"ejs": "html",
|
||||
},
|
||||
```
|
||||
|
||||
## 1.1.5 ##
|
||||
|
||||
- Fixed Block comment on line with ejs control variable
|
||||
- Add support for ejs litteral `<%%`
|
||||
|
||||
## 1.1.4 ##
|
||||
|
||||
- Add support for conditional loops
|
||||
- ReWrite to allow better html injection.
|
||||
|
||||
## 1.1.3 ##
|
||||
|
||||
- Prevent running under PHP.
|
||||
|
||||
## 1.1.2 ##
|
||||
|
||||
- Fixed support for JavaScript loops within EJS.
|
||||
|
||||
## 1.1.1 ##
|
||||
|
||||
- Fixed support for JavaScript comments using <kbd>ctrl+/</kbd> and <kbd>ctrl+shift+/</kbd> at EJS boundaries.
|
||||
|
||||
## 1.1.0 ##
|
||||
|
||||
- Added support for javascript comments using ctrl+/
|
||||
|
||||
|
||||
## 1.0.0 ##
|
||||
|
||||
### Major UPDATE ###
|
||||
|
||||
#### NOTICE: If you are not seeing any style, set your file associations for "*.ejs" to html ####
|
||||
|
||||
##### file association #####
|
||||
|
||||
- Located in setting.json
|
||||
- Should look like the following
|
||||
|
||||
```json
|
||||
{
|
||||
"files.associations": {
|
||||
"*.ejs": "html"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
#### Updates ####
|
||||
|
||||
- Major bump
|
||||
- Changing to an injected language.
|
||||
- Injecting into "text.html"
|
||||
- Setting configurationDefaults for file.association for ejs to html.
|
||||
- Rewrite of ejs.json
|
||||
- Created ejs-tag.
|
||||
|
||||
## Unpublished 0.5.1 ##
|
||||
|
||||
- Fixed surrounding a selection with JavaScript template literals.
|
||||
- Fixed language configuration within EJS blocks inside JavaScript code blocks.
|
||||
|
||||
## 0.5.0 ##
|
||||
|
||||
- Fixed single-line JS comments not being terminated correctly by an EJS closing tag. ([#28](https://github.com/Digitalbrainstem/ejs-grammar/issues/28))
|
||||
- Fixed broken EJS inside HTML `<script>` and `<style>` elements. ([#27](https://github.com/Digitalbrainstem/ejs-grammar/issues/27) and [#31](https://github.com/Digitalbrainstem/ejs-grammar/issues/31))
|
||||
- Fixed incorrect comments in HTML and JavaScript portions. ([#22](https://github.com/Digitalbrainstem/ejs-grammar/issues/22))
|
||||
|
||||
## 0.4.4 ##
|
||||
|
||||
- Published Untested Code. Rolling back.
|
||||
|
||||
## 0.4.1 ##
|
||||
|
||||
- No Code changes. Correcting information so those who help get properly recognized
|
||||
|
||||
## 0.4.0 ##
|
||||
|
||||
- Fixing bugs and a major rewrite! Thanks to [@ExE-Boss](https://github.com/ExE-Boss).
|
||||
|
||||
- Fixes [#3](https://github.com/Digitalbrainstem/ejs-grammar/issues/3)
|
||||
- Fixes [#7](https://github.com/Digitalbrainstem/ejs-grammar/issues/7)
|
||||
- Fixes [#20](https://github.com/Digitalbrainstem/ejs-grammar/issues/20)
|
||||
|
||||
## 0.3.2 ##
|
||||
|
||||
- Fixing readme.
|
||||
|
||||
## 0.3.1 ##
|
||||
|
||||
- Fixing spelling mistake!
|
||||
|
||||
## 0.3.0 ##
|
||||
|
||||
- Thanks to [@meesfrensel](https://github.com/meesfrensel) Added new auto close pair and other various corrections.
|
||||
|
||||
## 0.2.3 ##
|
||||
|
||||
- Issue [#6](https://github/Digitalbrainstem/ejs-grammar/issues/6): Fix errornous indentation on new line.
|
||||
|
||||
## 0.2.2 ##
|
||||
|
||||
- Update ReadMe: Adding Resources
|
||||
- Update ReadMe: Adding History
|
||||
- Update ReadMe: Adding links to EJS Docs
|
||||
|
||||
## 0.2.1 ##
|
||||
|
||||
- Update ReadMe
|
||||
|
||||
## 0.2.0 ##
|
||||
|
||||
- Feature: Allows support for alternate tags of EJS `<??>` now work.
|
||||
- Adding Changelog.
|
||||
|
||||
*Note: Technically, `<?%>` OR `<%?>` works with this version. I need to comb through the code and make sure only matching pairs work. That is an item for down the road though.*
|
||||
|
||||
## 0.1.2 ##
|
||||
|
||||
- Adding keywords
|
||||
- Adding todo items
|
||||
|
||||
## 0.1.1 ##
|
||||
|
||||
- Correcting ReadMe
|
||||
|
||||
## 0.1.0 ##
|
||||
|
||||
- Removed unused code
|
||||
- Update ReadMe file
|
||||
- Update Description
|
||||
- Add tmLanguage file
|
||||
|
||||
## 0.0.3 ##
|
||||
|
||||
- Update Name and display name
|
||||
|
||||
## 0.0.2 ##
|
||||
|
||||
- Cleanup old files
|
||||
|
||||
## 0.0.1 ##
|
||||
|
||||
- Initial Release
|
||||
21
.vscode/extensions/digitalbrainstem.javascript-ejs-support-1.3.1/LICENSE.txt
vendored
Normal file
21
.vscode/extensions/digitalbrainstem.javascript-ejs-support-1.3.1/LICENSE.txt
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2018 Betanu701
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
87
.vscode/extensions/digitalbrainstem.javascript-ejs-support-1.3.1/README.md
vendored
Normal file
87
.vscode/extensions/digitalbrainstem.javascript-ejs-support-1.3.1/README.md
vendored
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
[](https://marketplace.visualstudio.com/items?itemName=DigitalBrainstem.javascript-ejs-support)
|
||||
[](https://github.com/Digitalbrainstem/ejs-grammar/blob/master/LICENSE)
|
||||
|
||||
# EJS Language Support #
|
||||
|
||||
### NOTICE: If you are not seeing any style, set your file associations for "*.ejs" to html ###
|
||||
|
||||
- See CHANGELOG if you have issues with setting file.association
|
||||
|
||||
Syntax highlighting for EJS, Javascript, and HTML tags. Includes javascript autocompletion.
|
||||
|
||||
Please rate this and provide feedback for 2 reasons:
|
||||
|
||||
1. It helps me know what I need to improve. *Can't fix what I don't know*
|
||||
2. It will help other know that this version is out there and that it is a newer version of the top ranked EJS language file. *Old one has not had an update in 7 years (as of 2018)*
|
||||
|
||||
If there is anything that I missed or features you would like this to include. [Let me know](https://github.com/Digitalbrainstem/ejs-grammar/issues)
|
||||
|
||||
*NOTE: This is in early development; however, it does provide greater functionality than the other ejs language supports.*
|
||||
|
||||
## Features
|
||||
|
||||
***If snippets do not show up, add the following to your settings file***
|
||||
|
||||
```json
|
||||
"emmet.includeLanguages": {
|
||||
"ejs": "html",
|
||||
},
|
||||
```
|
||||
|
||||
**Snippets are found below.**
|
||||
|
||||
→ Denotes the `TAB` key.
|
||||
|
||||
| Snippet→ | Alternate | Output |
|
||||
| ---------- | -------- | ------------------------------------------------------------------------------------------------------- |
|
||||
| `ejs→` | `<%` | `<% %>` - No output tag |
|
||||
| `ejsout→` | `<%=` | `<%= %>` - Outputs HTML value |
|
||||
| `ejsesc→` | `<%-` | `<%- %>` - Outputs unescaped |
|
||||
| `ejscom→` | `<%#` | `<%# %>` - Comment tag |
|
||||
| `ejslit→` | `<%%` | `<%% %>` - Outputs Literal <% |
|
||||
| `ejsinc→` | `<%` | `include` statement |
|
||||
| `ejsfor→` | `<%` | `for` Javascript Loop |
|
||||
| `ejseach→` | `<%` | `forEach` Javascript Loop |
|
||||
| `ejsif→` | `<%` | `if` Statement with condition |
|
||||
| `ejselif→` | `<%` | `else if` Statement - *Middle section only.* Assumes you have already written the first `if` statement. |
|
||||
| `ejselse→` | `<%` | `else` Statement - *Middle section only.* Assumes you have already written the first `if` statement. |
|
||||
|
||||
## EJS docs ##
|
||||
|
||||
If you need documention on how to use EJS:
|
||||
|
||||
[EJS Github](https://github.com/mde/ejs)
|
||||
[EJS Website](https://ejs.co/)
|
||||
|
||||
## For Devs ##
|
||||
|
||||
If you need the tmLanguage file please visit my repo. It is located in syntaxes.
|
||||
|
||||
If you want to see support on other platforms let me know.
|
||||
|
||||
### Resources ###
|
||||
|
||||
I know Textmate/tmLanguage documention is not well recorded. If anyone reading this needs some good reading material on how to write one, these are the resources I used to help me write this.
|
||||
|
||||
+ [sublime Text](https://www.sublimetext.com/docs/3/scope_naming.html)
|
||||
+ [Lessons Learned](https://www.apeth.com/nonblog/stories/textmatebundle.html)
|
||||
+ [Textmate Manual](https://macromates.com/manual/en/language_grammars#language_grammars)
|
||||
+ [Textmate Blog](https://blog.macromates.com/2005/language-grammars/)
|
||||
+ [Atom Discussion 1](https://discuss.atom.io/t/first-steps-to-build-a-language-highlight/12047/5)
|
||||
+ [Atom Discussion 2](https://discuss.atom.io/t/syntax-theme-nested-elements-recursivity-for-pattern/36536/5)
|
||||
|
||||
#### History ####
|
||||
|
||||
I wanted to start by utilizing other tmLanguage files that did things close to what EJS did. I tried starting with razor and PHP tmLanguage files from vscode. However, this ended up being more problimatic, as it would not do the things I wanted it to do. So I just started to write it from scratch to get it to work properly. The one thing I knew I did not want to do is have to write the others grammars definitions in this if I did not have to. I wanted to be able to utilize each of the embedded languages that were already created. This is more of a pain because you have to really have to think about the order things run and how regex and the tags work together. ALso recursion is huge to make it work properly. I am still learning, so if anyone has tips and tricks either let me know on twitter or github. I would love to here others that utilize this.
|
||||
|
||||
## Contributors ##
|
||||
|
||||
+ [@meesfrensel](https://github.com/meesfrensel)
|
||||
+ [@ExE-Boss](https://github.com/ExE-Boss)
|
||||
+ Orginal Snippet Library [@theranbrig](https://github.com/theranbrig) [Code](https://github.com/theranbrig/ejs-snippets
|
||||
|
||||
## Contact ##
|
||||
|
||||
Twitter: [@digibrainstem](https://twitter.com/digibrainstem)
|
||||
|
||||
[github](https://github.com/DigitalBrainstem/ejs-grammar)
|
||||
BIN
.vscode/extensions/digitalbrainstem.javascript-ejs-support-1.3.1/assets/icon.png
vendored
Normal file
BIN
.vscode/extensions/digitalbrainstem.javascript-ejs-support-1.3.1/assets/icon.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 869 B |
47
.vscode/extensions/digitalbrainstem.javascript-ejs-support-1.3.1/language-configuration.json
vendored
Normal file
47
.vscode/extensions/digitalbrainstem.javascript-ejs-support-1.3.1/language-configuration.json
vendored
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
"comments": {
|
||||
// symbols used for start and end of a block comment.
|
||||
"blockComment": [ "<%#", "%>", "<%/*", "*/%>", "<?#", "?>", "<?/*", "*/?>" ],
|
||||
},
|
||||
|
||||
// symbols used as brackets
|
||||
"brackets": [
|
||||
["<!--", "-->"],
|
||||
["<", ">"],
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
],
|
||||
|
||||
// symbols that are auto closed when typing
|
||||
"autoClosingPairs": [
|
||||
{ "open": "{", "close": "}" },
|
||||
{ "open": "[", "close": "]" },
|
||||
{ "open": "(", "close": ")" },
|
||||
{ "open": "'", "close": "'" },
|
||||
{ "open": "\"", "close": "\"" },
|
||||
{ "open": "`", "close": "`", "notIn": ["string", "comment"] },
|
||||
{ "open": "/*", "close": " */", "notIn": ["string"] },
|
||||
{ "open": "/**", "close": " */", "notIn": ["string"] },
|
||||
{ "open": "<!--", "close": "-->", "notIn": [ "comment", "string" ]},
|
||||
{ "open": "<%", "close": "%>" },
|
||||
],
|
||||
|
||||
// symbols that that can be used to surround a selection
|
||||
"surroundingPairs": [
|
||||
["<", ">"],
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
["'", "'"],
|
||||
["\"", "\""],
|
||||
["`", "`"],
|
||||
],
|
||||
|
||||
"folding": {
|
||||
"markers": {
|
||||
"start": "^\\s*(?:<[%?][_-#]?(?:\\s*#)?region\\b.*[_-#]?[%?]>|<!--\\s*#region\\b.*-->)",
|
||||
"end": "^\\s*(?:<[%?][_-#]?(?:\\s*#)?endregion\\b.*[_-#]?[%?]>|<!--\\s*#endregion\\b.*-->)",
|
||||
}
|
||||
}
|
||||
}
|
||||
67
.vscode/extensions/digitalbrainstem.javascript-ejs-support-1.3.1/package.json
vendored
Normal file
67
.vscode/extensions/digitalbrainstem.javascript-ejs-support-1.3.1/package.json
vendored
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
"name": "javascript-ejs-support",
|
||||
"displayName": "EJS language support",
|
||||
"description": "2019 - EJS language support for Visual Studio Code.",
|
||||
"version": "1.3.1",
|
||||
"license": "MIT",
|
||||
"icon": "assets/icon.png",
|
||||
"publisher": "DigitalBrainstem",
|
||||
"author": {
|
||||
"name": "Derek Thomas",
|
||||
"email": "Derek@digitalbrainstem.com"
|
||||
},
|
||||
"engines": {
|
||||
"vscode": "^0.10.x"
|
||||
},
|
||||
"categories": [
|
||||
"Programming Languages"
|
||||
],
|
||||
"keywords": [
|
||||
"EJS",
|
||||
"embedded javascript",
|
||||
"syntax highlighting"
|
||||
],
|
||||
"contributes": {
|
||||
"grammars": [
|
||||
{
|
||||
"scopeName": "text.html.ejs",
|
||||
"path": "./syntaxes/ejs.json",
|
||||
"injectTo": [
|
||||
"text.html"
|
||||
],
|
||||
"embeddedLanguages": {
|
||||
"meta.embedded.block.ejs": "ejs",
|
||||
"meta.embedded.block.javascript": "source.js"
|
||||
}
|
||||
}
|
||||
],
|
||||
"snippets": [
|
||||
{
|
||||
"language": "html",
|
||||
"path": "./snippets/snippets.json"
|
||||
}
|
||||
],
|
||||
"configurationDefaults": {
|
||||
"files.associations": {
|
||||
"*.ejs": "html"
|
||||
},
|
||||
"emmet.includeLanguages": {
|
||||
"ejs": "html"
|
||||
}
|
||||
}
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/Digitalbrainstem/ejs-grammar/issues",
|
||||
"email": "help@digitalbrainstem.com"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Digitalbrainstem/ejs-grammar.git"
|
||||
},
|
||||
"__metadata": {
|
||||
"id": "9cd87837-c82a-4817-9b79-1c84775aa158",
|
||||
"publisherId": "8a82c29a-f974-4692-be63-35a118c52919",
|
||||
"publisherDisplayName": "DigitalBrainstem",
|
||||
"installedTimestamp": 1627023599722
|
||||
}
|
||||
}
|
||||
173
.vscode/extensions/digitalbrainstem.javascript-ejs-support-1.3.1/snippets/snippets.json
vendored
Normal file
173
.vscode/extensions/digitalbrainstem.javascript-ejs-support-1.3.1/snippets/snippets.json
vendored
Normal file
|
|
@ -0,0 +1,173 @@
|
|||
{
|
||||
"EJS No Output": {
|
||||
"prefix": "ejs",
|
||||
"body": [
|
||||
"<% $1 %> $2"
|
||||
],
|
||||
"description": "EJS No Output"
|
||||
},
|
||||
"EJS Output Value": {
|
||||
"prefix": "ejsout",
|
||||
"body": [
|
||||
"<%= $1 %> $2"
|
||||
],
|
||||
"description": "EJS outputs no value"
|
||||
},
|
||||
"EJS Output Escaped": {
|
||||
"prefix": "ejsesc",
|
||||
"body": [
|
||||
"<%- $1 %> $2"
|
||||
],
|
||||
"description": "EJS outputs value"
|
||||
},
|
||||
"EJS Comment": {
|
||||
"prefix": "ejscom",
|
||||
"body": [
|
||||
"<%# $1 %> $2"
|
||||
],
|
||||
"description": "EJS comment tag with no output"
|
||||
},
|
||||
"EJS Literal": {
|
||||
"prefix": "ejslit",
|
||||
"body": [
|
||||
"<%% $1 %> $2"
|
||||
],
|
||||
"description": "EJS outputs a literal '<%'"
|
||||
},
|
||||
"EJS Include": {
|
||||
"prefix": "ejsinc",
|
||||
"body": [
|
||||
"<% include $1 %> $2"
|
||||
],
|
||||
"description": "EJS include statement"
|
||||
},
|
||||
"EJS For Loop": {
|
||||
"prefix": "ejsfor",
|
||||
"body": [
|
||||
"<% for( let ${1:index} = 0; ${1:index} < ${2:array}.length; ${1:index}++ ) { %>",
|
||||
"$3",
|
||||
"<% } %>"
|
||||
],
|
||||
"description": "EJS For Loop"
|
||||
},
|
||||
"EJS ForEach": {
|
||||
"prefix": "ejseach",
|
||||
"body": [
|
||||
"<% ${1:array}.forEach(${2:element} => { %>",
|
||||
" $3",
|
||||
"<% }) %>"
|
||||
],
|
||||
"description": "EJS ForEach Loop"
|
||||
},
|
||||
"EJS If Statement": {
|
||||
"prefix": "ejsif",
|
||||
"body": [
|
||||
"<% if (${1:condition}) { %>",
|
||||
" $2",
|
||||
"<% } %>"
|
||||
],
|
||||
"description": "EJS if statement"
|
||||
},
|
||||
"EJS Else Statement": {
|
||||
"prefix": "ejselse",
|
||||
"body": [
|
||||
"<% } else { %>",
|
||||
" $1"
|
||||
],
|
||||
"description": "EJS if statement"
|
||||
},
|
||||
"EJS Else If Statement": {
|
||||
"prefix": "ejselif",
|
||||
"body": [
|
||||
"<% } else if ({$1:condition}) { %>",
|
||||
" $2"
|
||||
],
|
||||
"description": "EJS if statement"
|
||||
},
|
||||
|
||||
"EJS TAG": {
|
||||
"prefix": "<%",
|
||||
"body": [
|
||||
"<% $1 %> $2"
|
||||
],
|
||||
"description": "EJS No Output"
|
||||
},
|
||||
"EJS TAG Output Value": {
|
||||
"prefix": "<%=",
|
||||
"body": [
|
||||
"<%= $1 %> $2"
|
||||
],
|
||||
"description": "EJS outputs no value"
|
||||
},
|
||||
"EJS TAG Output Escaped": {
|
||||
"prefix": "<%-",
|
||||
"body": [
|
||||
"<%- $1 %> $2"
|
||||
],
|
||||
"description": "EJS outputs value"
|
||||
},
|
||||
"EJS TAG Comment": {
|
||||
"prefix": "<%#",
|
||||
"body": [
|
||||
"<%# $1 %> $2"
|
||||
],
|
||||
"description": "EJS comment tag with no output"
|
||||
},
|
||||
"EJS TAG Literal": {
|
||||
"prefix": "<%%",
|
||||
"body": [
|
||||
"<%% $1 %> $2"
|
||||
],
|
||||
"description": "EJS outputs a literal '<%'"
|
||||
},
|
||||
"EJS TAG Include": {
|
||||
"prefix": "<% ",
|
||||
"body": [
|
||||
"<% include $1 %> $2"
|
||||
],
|
||||
"description": "EJS include statement"
|
||||
},
|
||||
"EJS TAG For Loop": {
|
||||
"prefix": "<% ",
|
||||
"body": [
|
||||
"<% for( let ${1:index} = 0; ${1:index} < ${2:array}.length; ${1:index}++ ) { %>",
|
||||
"$3",
|
||||
"<% } %>"
|
||||
],
|
||||
"description": "EJS For Loop"
|
||||
},
|
||||
"EJS TAG ForEach": {
|
||||
"prefix": "<% ",
|
||||
"body": [
|
||||
"<% ${1:array}.forEach(${2:element} => { %>",
|
||||
" $3",
|
||||
"<% }) %>"
|
||||
],
|
||||
"description": "EJS ForEach Loop"
|
||||
},
|
||||
"EJS TAG If Statement": {
|
||||
"prefix": "<% ",
|
||||
"body": [
|
||||
"<% if (${1:condition}) { %>",
|
||||
" $2",
|
||||
"<% } %>"
|
||||
],
|
||||
"description": "EJS if statement"
|
||||
},
|
||||
"EJS TAG Else Statement": {
|
||||
"prefix": "<% ",
|
||||
"body": [
|
||||
"<% } else { %>",
|
||||
" $1"
|
||||
],
|
||||
"description": "EJS if statement"
|
||||
},
|
||||
"EJS TAG Else If Statement": {
|
||||
"prefix": "<% ",
|
||||
"body": [
|
||||
"<% } else if ({$1:condition}) { %>",
|
||||
" $2"
|
||||
],
|
||||
"description": "EJS if statement"
|
||||
}
|
||||
}
|
||||
33
.vscode/extensions/digitalbrainstem.javascript-ejs-support-1.3.1/syntaxes/ejs-nested.json
vendored
Normal file
33
.vscode/extensions/digitalbrainstem.javascript-ejs-support-1.3.1/syntaxes/ejs-nested.json
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
||||
"scopeName": "text.html.ejs.override-js",
|
||||
"injectionSelector": "L:text.html.ejs (* - meta.embedded.block.html) meta.block.js - (comment.block, text.html.ejs.override-js)",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "[_-]?(%|\\?)(>)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.tag.end.ejs"
|
||||
},
|
||||
"1": {
|
||||
"name": "text.html.ejs.override-js"
|
||||
}
|
||||
},
|
||||
"end": "(<)(%|\\?)(?![%#])[_=-]?",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.tag.begin.ejs"
|
||||
},
|
||||
"1": {
|
||||
"name": "text.html.ejs.override-js"
|
||||
}
|
||||
},
|
||||
"contentName": "text.html.ejs.override-js",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.html.ejs"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
167
.vscode/extensions/digitalbrainstem.javascript-ejs-support-1.3.1/syntaxes/ejs.json
vendored
Normal file
167
.vscode/extensions/digitalbrainstem.javascript-ejs-support-1.3.1/syntaxes/ejs.json
vendored
Normal file
|
|
@ -0,0 +1,167 @@
|
|||
{
|
||||
"name": "Embedded Javascript",
|
||||
"scopeName": "text.html.ejs",
|
||||
"injectionSelector": "L:text.html",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag-block-comment"
|
||||
},
|
||||
{
|
||||
"include": "#tag-single-line-section-comment"
|
||||
},
|
||||
{
|
||||
"include":"#tag-section-comment"
|
||||
},
|
||||
{
|
||||
"include":"#tag-ejs-single-line"
|
||||
},
|
||||
{
|
||||
"include":"#tag-ejs-multi-line"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"tag-block-comment": {
|
||||
"begin": "<[%?]#",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.ejs"
|
||||
}
|
||||
},
|
||||
"end": "[%?]>",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.ejs"
|
||||
}
|
||||
},
|
||||
"name": "comment.block.ejs"
|
||||
},
|
||||
"tag-single-line-section-comment": {
|
||||
"begin": "(<[%?](?:(?!php))[%_=-]?)\\s*((\/\\*)(.*)(\\*\/))(?=(\\s*([%?]>)))",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.relational.js"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.comment.ejs"
|
||||
},
|
||||
"5": {
|
||||
"name": "punctuation.definition.comment.ejs"
|
||||
},
|
||||
"2": {
|
||||
"name": "comment.block.ejs"
|
||||
}
|
||||
},
|
||||
"end": "([%?]>)",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.relational.js"
|
||||
}
|
||||
},
|
||||
"contentName": "comment.block.ejs",
|
||||
"name":"meta.block.single.comment.ejs"
|
||||
},
|
||||
"tag-section-comment": {
|
||||
"name":"comment.block.ejs",
|
||||
"begin":"(<[%?](?:(?!php)))\\s*((?=(\/\\*)))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.relational.js"
|
||||
}
|
||||
},
|
||||
"end": "(\\*\/)\\s*([%?]>)",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.ejs"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.relational.js"
|
||||
}
|
||||
},
|
||||
"patterns":[
|
||||
{
|
||||
"name":"ejs-end-tag",
|
||||
"match":"([%?]>)",
|
||||
"captures":{
|
||||
"1":{
|
||||
"name":"keyword.operator.relational.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name":"ejs-begin-tag",
|
||||
"match":"(<[%?](?:(?!php)))",
|
||||
"captures":{
|
||||
"1":{
|
||||
"name":"keyword.operator.relational.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"include":"text.html.ejs"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag-ejs-single-line": {
|
||||
|
||||
"name": "meta.tag.metadata.script.ejs",
|
||||
"begin":"(<[%?](?:(?!php))[%_=-]?)(?!(\\s*\\*\/))(((?!([_-]?[%?]>)).)+)(?=([_-]?[%?]>))",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"contentName":"source.js",
|
||||
"name": "meta.embedded.*"
|
||||
},
|
||||
"1": {
|
||||
"name": "keyword.operator.relational.js"
|
||||
},
|
||||
"3": {
|
||||
"name": "meta.embedded.ejs",
|
||||
"contentName": "source.js",
|
||||
"patterns":[
|
||||
{
|
||||
"include":"source.js"
|
||||
}
|
||||
]
|
||||
},
|
||||
"6": {
|
||||
"name": "keyword.operator.relational.js"
|
||||
}
|
||||
},
|
||||
"end": "(([_-]?[%?]>))",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.relational.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"tag-ejs-multi-line": {
|
||||
"contentName":"source.js",
|
||||
"name": "meta.block.ejs",
|
||||
"begin":"(<[%?](?:(?!php))[%_=-]?)(?!(\\s*\\*\/))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.relational.js"
|
||||
},
|
||||
"3": {
|
||||
"name": "meta.embedded.ejs",
|
||||
"contentName": "source.js",
|
||||
"patterns":[
|
||||
{
|
||||
"include":"source.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"end": "(([_-]?[%?]>))",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.relational.js"
|
||||
}
|
||||
},
|
||||
"patterns":[
|
||||
{
|
||||
"include":"source.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue