Skip to content

Commit ada2016

Browse files
authored
update night owl: add marko support (codesandbox#1789)
* update night owl: add marko support * fix le json file * add index.json
1 parent 9313316 commit ada2016

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+6741
-153
lines changed

packages/app/src/app/utils/get-type.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const specialCasesMap = {
1919

2020
const regexCasesMap = {
2121
markdown: /\.md$/,
22+
markojs: /\.marko$/,
2223
yaml: /\.yml$/,
2324
react: /\.jsx$/,
2425
reason: /\.re$/,
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## How to add a simple extension
2+
3+
* Install the extension on your VSCode
4+
* Copy extension folder into `/out/extensions`
5+
* Run `yarn compile`
6+
* Profit?
7+
8+
9+
Any errors please open an issue so we can fix that together

standalone-packages/vscode-extensions/out/extensions/index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<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">
3+
<Metadata>
4+
<Identity Language="en-US" Id="marko" Version="0.4.0" Publisher="pcanella"/>
5+
<DisplayName>Marko Syntax Highlighting</DisplayName>
6+
<Description xml:space="preserve">Syntax highlighting for Marko templates. Not sure what Marko is? Check out markojs.com for more info! Special thanks to https://github.com/merwan7 for creating the sublime originals!</Description>
7+
<Tags>snippet,marko,Marko,__ext_marko</Tags>
8+
<Categories>Programming Languages</Categories>
9+
<GalleryFlags>Public</GalleryFlags>
10+
<Badges></Badges>
11+
<Properties>
12+
<Property Id="Microsoft.VisualStudio.Code.Engine" Value="^0.10.10" />
13+
<Property Id="Microsoft.VisualStudio.Code.ExtensionDependencies" Value="" />
14+
<Property Id="Microsoft.VisualStudio.Code.ExtensionPack" Value="" />
15+
<Property Id="Microsoft.VisualStudio.Code.LocalizedLanguages" Value="" />
16+
17+
<Property Id="Microsoft.VisualStudio.Services.Links.Source" Value="git://github.com/pcanella/vscode-marko.git" />
18+
<Property Id="Microsoft.VisualStudio.Services.Links.Getstarted" Value="git://github.com/pcanella/vscode-marko.git" />
19+
20+
<Property Id="Microsoft.VisualStudio.Services.Links.Repository" Value="git://github.com/pcanella/vscode-marko.git" />
21+
22+
23+
24+
25+
26+
27+
<Property Id="Microsoft.VisualStudio.Services.GitHubFlavoredMarkdown" Value="true" />
28+
29+
30+
</Properties>
31+
32+
<Icon>extension/images/marko.png</Icon>
33+
</Metadata>
34+
<Installation>
35+
<InstallationTarget Id="Microsoft.VisualStudio.Code"/>
36+
</Installation>
37+
<Dependencies/>
38+
<Assets>
39+
<Asset Type="Microsoft.VisualStudio.Code.Manifest" Path="extension/package.json" Addressable="true" />
40+
<Asset Type="Microsoft.VisualStudio.Services.Content.Details" Path="extension/README.md" Addressable="true" /><Asset Type="Microsoft.VisualStudio.Services.Icons.Default" Path="extension/images/marko.png" Addressable="true" />
41+
</Assets>
42+
</PackageManifest>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# README
2+
## Marko Syntax Highlighting
3+
4+
Simply a port of https://github.com/merwan7/sublime-marko to VSCode. Enjoy.
5+
6+
Installation instructions:
7+
8+
* Open VS Code
9+
* Open command panel with `⌘ + P` (Mac) or `F1` (Windows)
10+
* Type `ext install marko` and it should come right up.
11+
* Not working? [email protected] and harass me!
12+
13+
## Emmet Autocompletion
14+
You can also enable `emmet` style autocompletion by adding the following configuration to your vscode settings:
15+
16+
```json
17+
"emmet.includeLanguages": {
18+
"marko": "html"
19+
}
20+
```
21+
22+
### Original source code
23+
https://github.com/pcanella/vscode-marko
24+
25+
### For more information
26+
* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
27+
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)
28+
29+
**Enjoy!**
4.13 KB
Loading
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"comments": {
3+
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
4+
"blockComment": [ "<!--", "-->" ]
5+
},
6+
// symbols used as brackets
7+
"brackets": [
8+
["`", "`"],
9+
["'", "'"],
10+
["\"", "\""],
11+
["{", "}"],
12+
["[", "]"],
13+
["(", ")"],
14+
["|", "|"],
15+
["<", ">"]
16+
]
17+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"name": "marko",
3+
"displayName": "Marko Syntax Highlighting",
4+
"description": "Syntax highlighting for Marko templates. Not sure what Marko is? Check out markojs.com for more info! Special thanks to https://github.com/merwan7 for creating the sublime originals!",
5+
"version": "0.4.0",
6+
"publisher": "pcanella",
7+
"engines": {
8+
"vscode": "^0.10.10"
9+
},
10+
"icon": "images/marko.png",
11+
"categories": [
12+
"Programming Languages"
13+
],
14+
"contributes": {
15+
"languages": [
16+
{
17+
"id": "marko",
18+
"aliases": [
19+
"Marko",
20+
"marko"
21+
],
22+
"extensions": [
23+
".marko"
24+
],
25+
"configuration": "./marko.configuration.json"
26+
}
27+
],
28+
"grammars": [
29+
{
30+
"language": "marko",
31+
"scopeName": "text.marko",
32+
"path": "./syntaxes/marko.tmLanguage"
33+
}
34+
],
35+
"snippets": [
36+
{
37+
"language": "marko",
38+
"path": "./snippets/marko.json"
39+
}
40+
]
41+
},
42+
"repository": {
43+
"type": "git",
44+
"url": "git://github.com/pcanella/vscode-marko.git"
45+
},
46+
"__metadata": {
47+
"id": "cb0fe8e0-a01f-4f61-867a-0c45a5faa159",
48+
"publisherId": "c3211e1a-77ae-4f47-a8b7-ac2b81e4aa34",
49+
"publisherDisplayName": "pcanella"
50+
}
51+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"for tag": {
3+
"prefix": "for",
4+
"body": ["<for|${1:item}| of=${2:items}>\n\t$3\n</for>\n"],
5+
"description": "for tag"
6+
},
7+
"if tag": {
8+
"prefix": "if",
9+
"body": ["<if(${1:condition})>\n\t$2\n</if>\n"],
10+
"description": "if tag"
11+
},
12+
"else-if tag": {
13+
"prefix": "else-if",
14+
"body": ["<else-if(${1:condition})>\n\t$2\n</else-if>\n"],
15+
"description": "else-if tag"
16+
},
17+
"else tag": {
18+
"prefix": "else",
19+
"body": ["<else>$1</else>\n"],
20+
"description": "else tag"
21+
},
22+
"await tag": {
23+
"prefix": "await",
24+
"body": [
25+
"<await(${1:promise})>\n\t<@then|${2:result}|>\n\t\t$3\n\t</@then>\n</await>\n"
26+
],
27+
"description": "async-fragment tag"
28+
},
29+
"ternary operator": {
30+
"prefix": "?",
31+
"body": ["{${1:expression} ? ${2:trueTemplate} : ${3:falseTemplate}}"],
32+
"description": "ternary operator"
33+
},
34+
"html-comment tag": {
35+
"prefix": "comment",
36+
"body": ["<html-comment>\n\t$1\n</html-comment>\n"],
37+
"description": "html-comment tag"
38+
},
39+
"log": {
40+
"prefix": "log",
41+
"body": ["$ console.log(${1:object})"],
42+
"description": "Log data in within the template"
43+
}
44+
}

0 commit comments

Comments
 (0)