Skip to content

Commit

Permalink
initial commit with working syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
kortina committed Feb 14, 2020
0 parents commit 96d362a
Show file tree
Hide file tree
Showing 9 changed files with 134 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
out
dist
node_modules
.vscode-test/
.vsix
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// A launch configuration that launches the extension inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
"name": "Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}", "${workspaceFolder}/test/test.md"]
}
]
}
4 changes: 4 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.vscode/**
.vscode-test/**
.gitignore
vsc-extension-quickstart.md
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

30 changes: 30 additions & 0 deletions language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"comments": {
// symbol used for single line comment. Remove this entry if your language does not support line comments
"lineComment": "//",
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
"blockComment": [ "/*", "*/" ]
},
// symbols used as brackets
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
// symbols that are auto closed when typing
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
],
// symbols that that can be used to surround a selection
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
]
}
44 changes: 44 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "vscode-markdown-notes",
"displayName": "VS Code Markdown Notes",
"description": "______________ ________________",
"version": "0.0.1",
"publisher": "kortina",
"repository": {
"url": "https://github.com/kortina/vscode-markdown-notes.git",
"type": "git"
},
"engines": {
"vscode": "^1.41.1"
},
"keywords": [
"markdown",
"notebook",
"notes",
"notetaking",
"wiki links"
],
"categories": [
"Programming Languages"
],
"contributes": {
"languages": [
{
"id": "markdown-notes",
"aliases": [],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "markdown-notes",
"scopeName": "text.markdown.notes",
"path": "./syntaxes/notes.tmLanguage.json",
"injectTo": [
"text.html.markdown"
]
}
]
},
"icon": "icon.png"
}
27 changes: 27 additions & 0 deletions syntaxes/notes.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "markdown",
"injectionSelector": "L:text.html.markdown",
"patterns": [
{
"match": "(\\[\\[)([^\\]]+)(\\]\\])",
"name": "text.markdown.notes.wiki-link",
"captures": {
"1": {
"name": "punctuation.definition.wiki-link"
},
"2": {
"name": "support.function.text.markdown.notes.wiki-link.title"
},
"3": {
"name": "punctuation.definition.wiki-link"
}
}
},
{
"match": "\\bkortina\\b",
"name": "text.markdown.notes.kortina"
}
],
"scopeName": "text.markdown.notes"
}
6 changes: 6 additions & 0 deletions test/test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Test

[[test]]
[[test-file.md]]

kortina

0 comments on commit 96d362a

Please sign in to comment.