├── .no-sublime-package
├── .gitignore
├── messages.json
├── sublime_zk_search.sublime-settings
├── sublime_zk_results.sublime-settings
├── Default (OSX).sublime-mousemap
├── Default (Linux).sublime-mousemap
├── Default (Windows).sublime-mousemap
├── Default (OSX).sublime-keymap
├── Default (Linux).sublime-keymap
├── Default (Windows).sublime-keymap
├── messages
├── 6.0.0.txt
├── 6.0.1.txt
├── 6.0.2.txt
├── 6.0.3.txt
├── 6.0.4.txt
├── 6.0.5.txt
└── install.txt
├── sublime_zk.sublime-commands
├── LICENSE
├── sublime_zk.sublime-settings
├── Main.sublime-menu
├── C64-ZK.tmTheme
├── Solarized (Light) - ZK.tmTheme
├── zk-mode
└── sublime_zk_search.sublime-syntax
└── sublime_zk.sublime-syntax
/.no-sublime-package:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | sublime_zk\.sublime-project
3 |
4 | sublime_zk\.sublime-workspace
5 |
6 |
7 | .search_results.md
8 | .idea/
9 | README_PDF.md
10 |
--------------------------------------------------------------------------------
/messages.json:
--------------------------------------------------------------------------------
1 | {
2 | "install": "messages/install.txt",
3 | "6.0.0": "messages/6.0.0.txt",
4 | "6.0.1": "messages/6.0.1.txt",
5 | "6.0.2": "messages/6.0.2.txt",
6 | "6.0.3": "messages/6.0.3.txt",
7 | "6.0.4": "messages/6.0.4.txt",
8 | "6.0.5": "messages/6.0.5.txt"
9 | }
--------------------------------------------------------------------------------
/sublime_zk_search.sublime-settings:
--------------------------------------------------------------------------------
1 | {
2 | "color_scheme": "Packages/sublime_zk/zk-mode/sublime_zk_search.tmTheme",
3 | "extensions":
4 | [
5 | "zks"
6 | ],
7 | //"font_face": "consolas",
8 | "font_size": 10,
9 | "line_numbers": false,
10 | "gutter": false,
11 | "word_wrap": true,
12 | "margin": 12,
13 | }
--------------------------------------------------------------------------------
/sublime_zk_results.sublime-settings:
--------------------------------------------------------------------------------
1 | {
2 | "color_scheme": "Packages/sublime_zk/zk-mode/sublime_zk_results.tmTheme",
3 | "extensions":
4 | [
5 | "zkr"
6 | ],
7 | //"font_face": "consolas",
8 | "font_size": 10,
9 | "line_numbers": false,
10 | "gutter": false,
11 | "word_wrap": false,
12 | "margin": 12,
13 | }
--------------------------------------------------------------------------------
/Default (OSX).sublime-mousemap:
--------------------------------------------------------------------------------
1 | [
2 |
3 | // Alt + Mouse 1 Column select
4 | {
5 | "button": "button1", "count": 2, "modifiers": ["alt"],
6 | "press_command": "zk_follow_wiki_link",
7 | "context": [
8 | {
9 | "key": "selector",
10 | "operator": "equal",
11 | "operand": "markup.zettel.link",
12 | "match_all": true,
13 | }
14 | ]
15 | },
16 | ]
17 |
--------------------------------------------------------------------------------
/Default (Linux).sublime-mousemap:
--------------------------------------------------------------------------------
1 | [
2 |
3 | // Alt + Mouse 1 Column select
4 | {
5 | "button": "button1", "count": 2, "modifiers": ["alt"],
6 | "press_command": "zk_follow_wiki_link",
7 | "context": [
8 | {
9 | "key": "selector",
10 | "operator": "equal",
11 | "operand": "markup.zettel.link",
12 | "match_all": true,
13 | }
14 | ]
15 | },
16 | ]
17 |
--------------------------------------------------------------------------------
/Default (Windows).sublime-mousemap:
--------------------------------------------------------------------------------
1 | [
2 |
3 | // Alt + Mouse 1 Column select
4 | {
5 | "button": "button1", "count": 2, "modifiers": ["alt"],
6 | "press_command": "zk_follow_wiki_link",
7 | "context": [
8 | {
9 | "key": "selector",
10 | "operator": "equal",
11 | "operand": "markup.zettel.link",
12 | "match_all": true,
13 | }
14 | ]
15 | },
16 | ]
17 |
--------------------------------------------------------------------------------
/Default (OSX).sublime-keymap:
--------------------------------------------------------------------------------
1 | [
2 | { "keys": ["shift+enter"], "command": "zk_new_zettel", "context": [ { "key": "sublime_zk", "operand": "true"}] },
3 | { "keys": ["ctrl+enter"], "command": "zk_follow_wiki_link", "context": [ { "key": "sublime_zk", "operand": "true"}]},
4 | { "keys": ["alt+enter"], "command": "zk_show_referencing_notes", "context": [ { "key": "sublime_zk", "operand": "true"}]},
5 | { "keys": ["[", "["], "command": "zk_get_wiki_link"},
6 | { "keys": ["#", "?"], "command": "zk_tag_selector"},
7 | { "keys": ["#", "!"], "command": "zk_show_all_tags"},
8 | { "keys": ["ctrl+."], "command": "zk_expand_link"},
9 | { "keys": ["[", "@"], "command": "zk_insert_citation"},
10 | { "keys": ["[", "#"], "command": "zk_insert_citation"},
11 | { "keys": ["[", "!"], "command": "zk_show_all_notes"},
12 | ]
13 |
--------------------------------------------------------------------------------
/Default (Linux).sublime-keymap:
--------------------------------------------------------------------------------
1 | [
2 | { "keys": ["shift+enter"], "command": "zk_new_zettel", "context": [ { "key": "sublime_zk", "operand": "true"}] },
3 | { "keys": ["ctrl+enter"], "command": "zk_follow_wiki_link", "context": [ { "key": "sublime_zk", "operand": "true"}]},
4 | { "keys": ["alt+enter"], "command": "zk_show_referencing_notes", "context": [ { "key": "sublime_zk", "operand": "true"}]},
5 | { "keys": ["[", "["], "command": "zk_get_wiki_link"},
6 | { "keys": ["#", "?"], "command": "zk_tag_selector"},
7 | { "keys": ["#", "!"], "command": "zk_show_all_tags"},
8 | { "keys": ["ctrl+."], "command": "zk_expand_link"},
9 | { "keys": ["[", "@"], "command": "zk_insert_citation"},
10 | { "keys": ["[", "#"], "command": "zk_insert_citation"},
11 | { "keys": ["[", "!"], "command": "zk_show_all_notes"},
12 | ]
13 |
--------------------------------------------------------------------------------
/Default (Windows).sublime-keymap:
--------------------------------------------------------------------------------
1 | [
2 | { "keys": ["shift+enter"], "command": "zk_new_zettel", "context": [ { "key": "sublime_zk", "operand": "true"}] },
3 | { "keys": ["ctrl+enter"], "command": "zk_follow_wiki_link", "context": [ { "key": "sublime_zk", "operand": "true"}]},
4 | { "keys": ["alt+enter"], "command": "zk_show_referencing_notes", "context": [ { "key": "sublime_zk", "operand": "true"}]},
5 | { "keys": ["[", "["], "command": "zk_get_wiki_link"},
6 | { "keys": ["#", "?"], "command": "zk_tag_selector"},
7 | { "keys": ["#", "!"], "command": "zk_show_all_tags"},
8 | { "keys": ["ctrl+."], "command": "zk_expand_link"},
9 | { "keys": ["[", "@"], "command": "zk_insert_citation"},
10 | { "keys": ["[", "#"], "command": "zk_insert_citation"},
11 | { "keys": ["[", "!"], "command": "zk_show_all_notes"},
12 | ]
13 |
--------------------------------------------------------------------------------
/messages/6.0.0.txt:
--------------------------------------------------------------------------------
1 | ___. .__ .__ __
2 | ________ _\_ |__ | | |__| _____ ____ _______| | __
3 | / ___/ | \ __ \| | | |/ \_/ __ \ \___ / |/ /
4 | \___ \| | / \_\ \ |_| | Y Y \ ___/ / /| <
5 | /____ >____/|___ /____/__|__|_| /\___ > /_____ \__|_ \
6 | \/ \/ \/ \/ \/ \/
7 | The SublimeText Zettelkasten
8 |
9 | Please see the README on github:
10 | https://github.com/renerocksai/sublime_zk#sublime-zk
11 |
12 | * I recommend installing `ag`, the silver searcher!
13 | * see the README:
14 | https://github.com/renerocksai/sublime_zk#installing-the-silver-searcher
15 |
16 | * for syntax coloring instructions
17 | * see the README:
18 | https://github.com/renerocksai/sublime_zk#syntax-coloring-for-tags-footnotes-and-pandoc-references
19 |
--------------------------------------------------------------------------------
/messages/6.0.1.txt:
--------------------------------------------------------------------------------
1 | ___. .__ .__ __
2 | ________ _\_ |__ | | |__| _____ ____ _______| | __
3 | / ___/ | \ __ \| | | |/ \_/ __ \ \___ / |/ /
4 | \___ \| | / \_\ \ |_| | Y Y \ ___/ / /| <
5 | /____ >____/|___ /____/__|__|_| /\___ > /_____ \__|_ \
6 | \/ \/ \/ \/ \/ \/
7 | The SublimeText Zettelkasten
8 |
9 | Please see the README on github:
10 | https://github.com/renerocksai/sublime_zk#sublime-zk
11 |
12 | * I recommend installing `ag`, the silver searcher!
13 | * see the README:
14 | https://github.com/renerocksai/sublime_zk#installing-the-silver-searcher
15 |
16 | * for syntax coloring instructions
17 | * see the README:
18 | https://github.com/renerocksai/sublime_zk#syntax-coloring-for-tags-footnotes-and-pandoc-references
19 |
--------------------------------------------------------------------------------
/messages/6.0.2.txt:
--------------------------------------------------------------------------------
1 | ___. .__ .__ __
2 | ________ _\_ |__ | | |__| _____ ____ _______| | __
3 | / ___/ | \ __ \| | | |/ \_/ __ \ \___ / |/ /
4 | \___ \| | / \_\ \ |_| | Y Y \ ___/ / /| <
5 | /____ >____/|___ /____/__|__|_| /\___ > /_____ \__|_ \
6 | \/ \/ \/ \/ \/ \/
7 | The SublimeText Zettelkasten
8 |
9 | Please see the README on github:
10 | https://github.com/renerocksai/sublime_zk#sublime-zk
11 |
12 | * I recommend installing `ag`, the silver searcher!
13 | * see the README:
14 | https://github.com/renerocksai/sublime_zk#installing-the-silver-searcher
15 |
16 | * for syntax coloring instructions
17 | * see the README:
18 | https://github.com/renerocksai/sublime_zk#syntax-coloring-for-tags-footnotes-and-pandoc-references
19 |
--------------------------------------------------------------------------------
/messages/6.0.3.txt:
--------------------------------------------------------------------------------
1 | ___. .__ .__ __
2 | ________ _\_ |__ | | |__| _____ ____ _______| | __
3 | / ___/ | \ __ \| | | |/ \_/ __ \ \___ / |/ /
4 | \___ \| | / \_\ \ |_| | Y Y \ ___/ / /| <
5 | /____ >____/|___ /____/__|__|_| /\___ > /_____ \__|_ \
6 | \/ \/ \/ \/ \/ \/
7 | The SublimeText Zettelkasten
8 |
9 | Please see the README on github:
10 | https://github.com/renerocksai/sublime_zk#sublime-zk
11 |
12 | * I recommend installing `ag`, the silver searcher!
13 | * see the README:
14 | https://github.com/renerocksai/sublime_zk#installing-the-silver-searcher
15 |
16 | * for syntax coloring instructions
17 | * see the README:
18 | https://github.com/renerocksai/sublime_zk#syntax-coloring-for-tags-footnotes-and-pandoc-references
19 |
--------------------------------------------------------------------------------
/messages/6.0.4.txt:
--------------------------------------------------------------------------------
1 | ___. .__ .__ __
2 | ________ _\_ |__ | | |__| _____ ____ _______| | __
3 | / ___/ | \ __ \| | | |/ \_/ __ \ \___ / |/ /
4 | \___ \| | / \_\ \ |_| | Y Y \ ___/ / /| <
5 | /____ >____/|___ /____/__|__|_| /\___ > /_____ \__|_ \
6 | \/ \/ \/ \/ \/ \/
7 | The SublimeText Zettelkasten
8 |
9 | Please see the README on github:
10 | https://github.com/renerocksai/sublime_zk#sublime-zk
11 |
12 | * I recommend installing `ag`, the silver searcher!
13 | * see the README:
14 | https://github.com/renerocksai/sublime_zk#installing-the-silver-searcher
15 |
16 | * for syntax coloring instructions
17 | * see the README:
18 | https://github.com/renerocksai/sublime_zk#syntax-coloring-for-tags-footnotes-and-pandoc-references
19 |
--------------------------------------------------------------------------------
/messages/6.0.5.txt:
--------------------------------------------------------------------------------
1 | ___. .__ .__ __
2 | ________ _\_ |__ | | |__| _____ ____ _______| | __
3 | / ___/ | \ __ \| | | |/ \_/ __ \ \___ / |/ /
4 | \___ \| | / \_\ \ |_| | Y Y \ ___/ / /| <
5 | /____ >____/|___ /____/__|__|_| /\___ > /_____ \__|_ \
6 | \/ \/ \/ \/ \/ \/
7 | The SublimeText Zettelkasten
8 |
9 | Please see the README on github:
10 | https://github.com/renerocksai/sublime_zk#sublime-zk
11 |
12 | * I recommend installing `ag`, the silver searcher!
13 | * see the README:
14 | https://github.com/renerocksai/sublime_zk#installing-the-silver-searcher
15 |
16 | * for syntax coloring instructions
17 | * see the README:
18 | https://github.com/renerocksai/sublime_zk#syntax-coloring-for-tags-footnotes-and-pandoc-references
19 |
--------------------------------------------------------------------------------
/messages/install.txt:
--------------------------------------------------------------------------------
1 | ___. .__ .__ __
2 | ________ _\_ |__ | | |__| _____ ____ _______| | __
3 | / ___/ | \ __ \| | | |/ \_/ __ \ \___ / |/ /
4 | \___ \| | / \_\ \ |_| | Y Y \ ___/ / /| <
5 | /____ >____/|___ /____/__|__|_| /\___ > /_____ \__|_ \
6 | \/ \/ \/ \/ \/ \/
7 | The SublimeText Zettelkasten
8 |
9 | Please see the README on github:
10 | https://github.com/renerocksai/sublime_zk#sublime-zk
11 |
12 | * I recommend installing `ag`, the silver searcher!
13 | * see the README:
14 | https://github.com/renerocksai/sublime_zk#installing-the-silver-searcher
15 |
16 | * for syntax coloring instructions
17 | * see the README:
18 | https://github.com/renerocksai/sublime_zk#syntax-coloring-for-tags-footnotes-and-pandoc-references
19 |
--------------------------------------------------------------------------------
/sublime_zk.sublime-commands:
--------------------------------------------------------------------------------
1 | [
2 | { "caption": "ZK: New Zettel Note", "command": "zk_new_zettel" },
3 | { "caption": "ZK: Insert Citation", "command": "zk_insert_citation" },
4 | { "caption": "ZK: Pick tag from list", "command": "zk_tag_selector" },
5 | { "caption": "ZK: Find all tags in archive", "command": "zk_show_all_tags" },
6 | { "caption": "ZK: Expand Overview Note", "command": "zk_expand_overview_note" },
7 | { "caption": "ZK: Refresh Expanded Note", "command": "zk_refresh_expanded_note" },
8 | { "caption": "ZK: Expand Link inline", "command": "zk_expand_link" },
9 | { "caption": "ZK: Search for tag combination", "command": "zk_multi_tag_search" },
10 | { "caption": "ZK: Auto-Bib", "command": "zk_auto_bib" },
11 | { "caption": "ZK: Show Images", "command": "zk_show_images" },
12 | { "caption": "ZK: Hide Images", "command": "zk_hide_images" },
13 | { "caption": "ZK: Auto-TOC", "command": "zk_toc" },
14 | { "caption": "ZK: Number Headings", "command": "zk_renumber_headings" },
15 | { "caption": "ZK: Remove Heading Numbers", "command": "zk_denumber_headings" },
16 | { "caption": "ZK: Select Panes for opening notes/results", "command": "zk_select_panes" },
17 | { "caption": "ZK: Insert Link", "command": "zk_get_wiki_link" },
18 | { "caption": "ZK: Show all Notes", "command": "zk_show_all_notes" },
19 | { "caption": "ZK: Enter Zettelkasten Mode", "command": "zk_enter_zk_mode" },
20 | ]
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017-2018 Rene Schallner
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 | -------------------------------------------------------------------------------------
24 | This software incorporates the syntax of MarkdownExtended:
25 | https://github.com/jonschlinkert/sublime-markdown-extended
26 |
27 | Here is its license:
28 |
29 | The MIT Licence (MIT)
30 |
31 | MarkdownExtended: Copyright (c) 2013-2015 Jon Schlinkert
32 |
33 | Permission is hereby granted, free of charge, to any person
34 | obtaining a copy of this software and associated documentation
35 | files (the "Software"), to deal in the Software without
36 | restriction, including without limitation the rights to use,
37 | copy, modify, merge, publish, distribute, sublicense, and/or sell
38 | copies of the Software, and to permit persons to whom the
39 | Software is furnished to do so, subject to the following
40 | conditions:
41 |
42 | The above copyright notice and this permission notice shall be
43 | included in all copies or substantial portions of the Software.
44 |
45 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
46 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
47 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
48 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
49 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
50 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
51 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
52 | OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/sublime_zk.sublime-settings:
--------------------------------------------------------------------------------
1 | {
2 |
3 | // The preferred markdown extension
4 | "wiki_extension": ".md",
5 |
6 | // when creating a new link, use [[double brackets]]
7 | // false to use [single brackets]
8 | "double_brackets": true,
9 |
10 | // links like "[[199901012359]] and note title" instead of "[[199901012359]]"
11 | "insert_links_with_titles": false,
12 |
13 | // when creating a new note, put id into title?
14 | // false to disable
15 | "id_in_title": false,
16 |
17 | // highlight links to other notes?
18 | // false to disable
19 | "highlight_note_links": true,
20 |
21 | // prefix for #tags
22 | "tag_prefix": "#",
23 |
24 | // when highlighting: also show bookmark symbols in the gutter?
25 | // false to disable
26 | "show_bookmarks_in_gutter": true,
27 |
28 | // should the tag list appear in a new pane right to the note?
29 | "show_all_tags_in_new_pane": true,
30 |
31 | // show find results in a new tab?
32 | // false to disable: then they will be displayed at the bottom of the window
33 | "show_search_results_in_new_tab": true,
34 |
35 | // fall-back: location of ag if it cannot be found in the PATH
36 | "path_to_ag": "/usr/local/bin/ag",
37 |
38 | // for auto-completion of citekeys and auto-bibs
39 | // enter the full path to your .bib file here
40 | "bibfile": "/path/to/zotero.bib",
41 |
42 | // make sure images don't get too large
43 | // scale them to max_width, proportionally
44 | "img_maxwidth": 320,
45 |
46 | // set to true if you want images to be displayed automatically when you open a note
47 | "auto_show_images": false,
48 |
49 | // separator to use when appending numbered suffix to duplicate headings
50 | // in table of contents. If you use pandoc, change this to a "-".
51 | "toc_suffix_separator": "_",
52 |
53 | // use multimarkdown style for citations
54 | // set to false to use pandoc style:
55 | // use [@citekey] to reference something in your .bib file
56 | // autobib style will be: [@citekey]: full-blown reference
57 | // set to true to use multimarkdown style:
58 | // use [][#citekey] to reference something in your .bib file
59 | // autobib style will be: [#citekey]: full-blown reference
60 | // note: for autobib to work you still need pandoc installed in either case
61 | "citations-mmd-style": false,
62 |
63 | // Pane where notes are opened when a link is clicked or a new note is created
64 | // Pane 0 is the 1st pane ever
65 | "pane_for_opening_notes": 0,
66 | //Pane where search results and tag lists, etc are opened (if ag is installed)
67 | // Pane 1 is the second pane, created when you split the window
68 | // in a 2-column layout, this is the right column
69 | // in a 2-row layout, this is the bottom row
70 | "pane_for_opening_results": 1,
71 |
72 | // seconds in note IDs?
73 | // if true : YYYYMMDDHHMMSS 20171224183045
74 | // if false: YYYYMMDDHHMM 201712241830
75 | "seconds_in_id": false,
76 |
77 | // Sort note lists (search results) by
78 | // - title
79 | // - ID <-- default
80 | "sort_notelists_by": "id",
81 |
82 | // set to true to enable super awesome zettelkasten mode
83 | "zettelkasten_mode" : true,
84 | }
85 |
--------------------------------------------------------------------------------
/Main.sublime-menu:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "caption": "Preferences",
4 | "mnemonic": "n",
5 | "id": "preferences",
6 | "children":
7 | [
8 | {
9 | "caption": "Package Settings",
10 | "mnemonic": "P",
11 | "id": "package-settings",
12 | "children":
13 | [
14 | {
15 | "caption": "Sublime ZK",
16 | "children":
17 | [
18 | {
19 | "command": "open_file",
20 | "args": {"file": "${packages}/sublime_zk/sublime_zk.sublime-settings"},
21 | "caption": "Settings – Default"
22 | },
23 | {
24 | "command": "open_file",
25 | "args": {"file": "${packages}/User/sublime_zk.sublime-settings"},
26 | "caption": "Settings – User"
27 | },
28 | {
29 | "command": "open_file",
30 | "args": {
31 | "file": "${packages}/sublime_zk/Default (Windows).sublime-keymap",
32 | "platform": "Windows"
33 | },
34 | "caption": "Key Bindings – Default"
35 | },
36 | {
37 | "command": "open_file",
38 | "args": {
39 | "file": "${packages}/sublime_zk/Default (OSX).sublime-keymap",
40 | "platform": "OSX"
41 | },
42 | "caption": "Key Bindings – Default"
43 | },
44 | {
45 | "command": "open_file",
46 | "args": {
47 | "file": "${packages}/sublime_zk/Default (Linux).sublime-keymap",
48 | "platform": "Linux"
49 | },
50 | "caption": "Key Bindings – Default"
51 | },
52 | {
53 | "command": "open_file",
54 | "args": {
55 | "file": "${packages}/User/Default (Windows).sublime-keymap",
56 | "platform": "Windows"
57 | },
58 | "caption": "Key Bindings – User"
59 | },
60 | {
61 | "command": "open_file",
62 | "args": {
63 | "file": "${packages}/User/Default (OSX).sublime-keymap",
64 | "platform": "OSX"
65 | },
66 | "caption": "Key Bindings – User"
67 | },
68 | {
69 | "command": "open_file",
70 | "args": {
71 | "file": "${packages}/User/Default (Linux).sublime-keymap",
72 | "platform": "Linux"
73 | },
74 | "caption": "Key Bindings – User"
75 | },
76 | { "caption": "-" }
77 | ]
78 | }
79 | ]
80 | }
81 | ]
82 | }
83 | ]
84 |
--------------------------------------------------------------------------------
/C64-ZK.tmTheme:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | comment
6 | Rene Schallner
7 | name
8 | Commodore 64
9 | semanticClass
10 | terminal.c64
11 | colorSpaceName
12 | sRGB
13 | settings
14 |
15 |
16 | name
17 | GitGutter deleted
18 | scope
19 | markup.deleted.git_gutter
20 | settings
21 |
22 | foreground
23 | #9494e0
24 |
25 |
26 |
27 | name
28 | GitGutter changed
29 | scope
30 | markup.changed.git_gutter
31 | settings
32 |
33 | foreground
34 | #9494e0
35 |
36 |
37 |
38 | name
39 | GitGutter inserted
40 | scope
41 | markup.inserted.git_gutter
42 | settings
43 |
44 | foreground
45 | #9494e0
46 |
47 |
48 |
49 | settings
50 |
51 | background
52 | #4443a6
53 | caret
54 | #9494e0
55 | foreground
56 | #9494e0
57 | invisibles
58 | #5151ad
59 | lineHighlight
60 | #5151ad
61 | selection
62 | #5151ad
63 | gutter
64 | #4443a6
65 |
66 |
67 |
68 |
69 | name
70 | Text
71 | scope
72 | variable.parameter.function
73 | settings
74 |
75 | foreground
76 | #9494e0
77 |
78 |
79 |
80 | name
81 | Comments
82 | scope
83 | comment, punctuation.definition.comment
84 | settings
85 |
86 | foreground
87 | #9494e0
88 |
89 |
90 |
91 | name
92 | Punctuation
93 | scope
94 | punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array
95 | settings
96 |
97 | foreground
98 | #9494e0
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 | name
109 | Markdown em
110 | scope
111 | markup.italic
112 | settings
113 |
114 | fontStyle
115 | italic
116 | foreground
117 | #9494e0
118 |
119 |
120 |
121 | name
122 | Markdown em
123 | scope
124 | punctuation.definition.italic.begin.markdown, punctuation.definition.italic.end.markdown
125 | settings
126 |
127 | fontStyle
128 | italic
129 | foreground
130 | #9494e0
131 |
132 |
133 |
134 | Name
135 | Markdown strong
136 | scope
137 | punctuation.definition.bold.begin.markdown, punctuation.definition.bold.end.markdown
138 | settings
139 |
140 | foreground
141 | #6463c6
142 | fontStyle
143 | default
144 |
145 |
146 |
147 | Name
148 | Markdown stronger
149 | scope
150 | markup.bold.markdown
151 | settings
152 |
153 | background
154 | #9494e0
155 | foreground
156 | #4443a6
157 | fontStyle
158 | bold
159 |
160 |
161 |
162 |
163 |
164 | Name
165 | Markdown heading
166 | scope
167 | markup.heading, punctuation.definition.heading.markdown
168 | settings
169 |
170 | background
171 | #9494e0
172 | foreground
173 | #4443a6
174 | fontStyle
175 | bold
176 |
177 |
178 |
179 | Name
180 | Markdown heading
181 | scope
182 | entity.name.section.markdown
183 | settings
184 |
185 | background
186 | #9494e0
187 | foreground
188 | #4443a6
189 | fontStyle
190 | bold
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 | name
200 | Markdown: Raw Block fenced
201 | scope
202 | markup.raw.block.fenced.markdown, markup.raw.code-fence.markdown
203 | settings
204 |
205 | background
206 | black
207 | foreground
208 | gray
209 | fontStyle
210 | bold
211 |
212 |
213 |
214 |
215 |
216 | name
217 | Markup: Raw block
218 | scope
219 | markup.raw.block, markup.raw.inline.markdown
220 | settings
221 |
222 | background
223 | black
224 | foreground
225 | gray
226 | fontStyle
227 | bold
228 |
229 |
230 |
231 |
232 |
233 |
234 | name
235 | Markup: Zettelkasten note link
236 | scope
237 | markup.zettel.link
238 | settings
239 |
240 | fontStyle
241 | underline
242 | foreground
243 | #9494e0
244 |
245 |
246 |
247 | name
248 | Markup: Zettelkasten note link title
249 | scope
250 | markup.zettel.linktitle
251 | settings
252 |
253 | fontStyle
254 | underline
255 | foreground
256 | #9494e0
257 |
258 |
259 |
260 |
261 |
262 | name
263 | link
264 | scope
265 | meta.link.inline.description.markdown, string.other.link.title, meta.link.inline.description.markdown storage.class
266 | settings
267 |
268 | foreground
269 | #9494e0
270 |
271 |
272 |
273 | name
274 | link
275 | scope
276 | markup.underline.link.markdown, markup.underline.link.markdown comment
277 | settings
278 |
279 | fontStyle
280 | underline italic
281 | foreground
282 | #9494e0
283 |
284 |
285 |
286 |
287 |
288 |
289 | name
290 | Markup: Zettelkasten tag
291 | scope
292 | markup.zettel.tag, markup.zettel.tag markup.italic
293 | settings
294 |
295 | fontStyle
296 | italic
297 | foreground
298 | #9494e0
299 |
300 |
301 |
302 |
303 |
304 |
305 | name
306 | Markup: Image caption
307 | scope
308 | meta.image.inline.description.markdown
309 | settings
310 |
311 | foreground
312 | gray
313 |
314 |
315 |
316 | name
317 | Markup: Image Link
318 | scope
319 | markup.underline.link.image.markdown
320 | settings
321 |
322 | fontStyle
323 | underline italic
324 | foreground
325 | #9494e0
326 |
327 |
328 |
329 | name
330 | Markup: Zettelkasten Image attrs in image link
331 | scope
332 | meta.image.inline.markdown.imageattr,punctuation.definition.imageattr
333 | settings
334 |
335 | foreground
336 | #9494e0
337 |
338 |
339 |
340 |
341 |
342 | name
343 | Constant: User-defined
344 | scope
345 | text.html.markdown.multimarkdown.custom text.html.markdown.multimarkdown meta.content.multimarkdown constant.other.reference.link.markdown
346 | settings
347 |
348 | fontStyle
349 | italic
350 | foreground
351 | gray
352 |
353 |
354 |
355 | name
356 | Constant: User-defined
357 | scope
358 | meta.link.reference.def.markdown constant.other.reference.link.markdown
359 | settings
360 |
361 | foreground
362 | gray
363 |
364 |
365 |
366 |
367 |
368 | name
369 | Markdown Footnote
370 | scope
371 | support.function.footnote.markdown
372 | settings
373 |
374 | foreground
375 | yellow
376 |
377 |
378 |
379 |
380 |
381 | name
382 | Markdown Quote
383 | scope
384 | markup.quote.markdown, markup.quote.markdown comment
385 | settings
386 |
387 | fontStyle
388 | italic
389 |
390 |
391 |
392 |
393 | name
394 | Markdown Quote gt
395 | scope
396 | comment punctuation.definition.blockquote.markdown, punctuation.definition.blockquote.markdown
397 | settings
398 |
399 | fontStyle
400 | italic
401 | foreground
402 | gray
403 |
404 |
405 |
406 |
407 |
408 |
409 |
410 | name
411 | Comment
412 | scope
413 | comment
414 | settings
415 |
416 | foreground
417 | 9494e0
418 |
419 |
420 |
421 |
422 |
423 | name
424 | Comment
425 | scope
426 | markup.list.numbered.bullet, markup.list.unnumbered.bullet
427 | settings
428 |
429 | foreground
430 | gray
431 |
432 |
433 |
434 |
435 |
436 |
437 |
438 | uuid
439 | 626ece60-29e7-11e3-8224-0800200c9a66
440 |
441 |
--------------------------------------------------------------------------------
/Solarized (Light) - ZK.tmTheme:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | name
6 | Solarized (light) - ZK
7 | settings
8 |
9 |
10 |
11 |
12 | settings
13 |
14 | background
15 | #fdf6e3
16 | caret
17 | #6ec3dc
18 | foreground
19 | #657b83
20 | gutter
21 | #fdf6e3
22 | invisibles
23 | #eee8d5
24 | lineHighlight
25 | #3F3D3812
26 | misspelling
27 | #dc322f
28 | selection
29 | #d33682
30 | selectionBorder
31 | #d33682
32 | selectionForeground
33 | #fdf6e3
34 |
35 |
36 |
37 |
38 |
39 | name
40 | Comment
41 | scope
42 | comment, meta.documentation
43 | settings
44 |
45 | foreground
46 | #93a1a1
47 |
48 |
49 |
50 | name
51 | String
52 | scope
53 | string
54 | settings
55 |
56 | foreground
57 | #2aa198
58 |
59 |
60 |
61 | name
62 | Regexp
63 | scope
64 | string.regexp
65 | settings
66 |
67 | foreground
68 | #2aa198
69 |
70 |
71 |
72 | name
73 | Escape \ char
74 | scope
75 | constant.character.escape
76 | settings
77 |
78 | foreground
79 | #dc322f
80 |
81 |
82 |
83 | name
84 | Number
85 | scope
86 | constant.numeric
87 | settings
88 |
89 | foreground
90 | #6c71c4
91 |
92 |
93 |
94 | name
95 | Variable
96 | scope
97 | variable
98 | settings
99 |
100 | foreground
101 | #268bd2
102 |
103 |
104 |
105 | name
106 | Variable Function
107 | scope
108 | variable.function
109 | settings
110 |
111 | foreground
112 | #b58900
113 |
114 |
115 |
116 | name
117 | Variable Language
118 | scope
119 | variable.language
120 | settings
121 |
122 | foreground
123 | #d33682
124 |
125 |
126 |
127 | name
128 | Keyword
129 | scope
130 | keyword
131 | settings
132 |
133 | foreground
134 | #859900
135 |
136 |
137 |
138 | name
139 | Import
140 | scope
141 | meta.import keyword, keyword.control.import, keyword.control.import.from, keyword.other.import, keyword.control.at-rule.include, keyword.control.at-rule.import
142 | settings
143 |
144 | foreground
145 | #cb4b16
146 |
147 |
148 |
149 | name
150 | Arithmetical, Assignment, Comparision Operators
151 | scope
152 | keyword.operator.comparison, keyword.operator.assignment, keyword.operator.arithmetic
153 | settings
154 |
155 | foreground
156 | #657b83
157 |
158 |
159 |
160 | name
161 | Storage
162 | scope
163 | storage
164 | settings
165 |
166 | foreground
167 | #859900
168 |
169 |
170 |
171 | name
172 | Storage modifier
173 | scope
174 | storage.modifier
175 | settings
176 |
177 | foreground
178 | #586e75
179 |
180 |
181 |
182 | name
183 | Class
184 | scope
185 | keyword.control.class, entity.name, entity.name.class, entity.name.type.class
186 | settings
187 |
188 | foreground
189 | #b58900
190 |
191 |
192 |
193 | name
194 | Inherited Class
195 | scope
196 | entity.other.inherited-class
197 | settings
198 |
199 | foreground
200 | #268bd2
201 |
202 |
203 |
204 | name
205 | Attribute
206 | scope
207 | entity.other.attribute-name
208 | settings
209 |
210 | foreground
211 | #b58900
212 |
213 |
214 |
215 | name
216 | Library class
217 | scope
218 | support, support.type, support.class
219 | settings
220 |
221 | foreground
222 | #859900
223 |
224 |
225 |
226 | name
227 | Function name
228 | scope
229 | entity.name.function
230 | settings
231 |
232 | foreground
233 | #b58900
234 |
235 |
236 |
237 | name
238 | Variable start
239 | scope
240 | punctuation.definition.variable
241 | settings
242 |
243 | foreground
244 | #859900
245 |
246 |
247 |
248 | name
249 | Built-in constant
250 | scope
251 | constant, constant.language, meta.preprocessor
252 | settings
253 |
254 | foreground
255 | #b58900
256 |
257 |
258 |
259 | Name
260 | Section heading
261 | scope
262 | entity.name.section
263 | settings
264 |
265 | foreground
266 | #cb4b16
267 |
268 |
269 |
270 | name
271 | Support.construct
272 | scope
273 | support.function.construct, keyword.other.new
274 | settings
275 |
276 | foreground
277 | #dc322f
278 |
279 |
280 |
281 | name
282 | User-defined constant
283 | scope
284 | constant.character, constant.other
285 | settings
286 |
287 | foreground
288 | #cb4b16
289 |
290 |
291 |
292 | name
293 | Tag name
294 | scope
295 | entity.name.tag
296 | settings
297 |
298 | foreground
299 | #268bd2
300 |
301 |
302 |
303 | name
304 | Tag start/end
305 | scope
306 | punctuation.definition.tag.html, punctuation.definition.tag.begin, punctuation.definition.tag.end
307 | settings
308 |
309 | foreground
310 | #93a1a1
311 |
312 |
313 |
314 | name
315 | Library function
316 | scope
317 | support.function
318 | settings
319 |
320 | foreground
321 | #859900
322 |
323 |
324 |
325 | name
326 | Continuation
327 | scope
328 | punctuation.separator.continuation
329 | settings
330 |
331 | foreground
332 | #dc322f
333 |
334 |
335 |
336 | name
337 | Storage Type
338 | scope
339 | storage.type
340 | settings
341 |
342 | foreground
343 | #268bd2
344 |
345 |
346 |
347 | name
348 | Exception
349 | scope
350 | support.type.exception
351 | settings
352 |
353 | foreground
354 | #cb4b16
355 |
356 |
357 |
358 | name
359 | Special
360 | scope
361 | keyword.other.special-method
362 | settings
363 |
364 | foreground
365 | #cb4b16
366 |
367 |
368 |
369 | name
370 | Invalid
371 | scope
372 | invalid
373 | settings
374 |
375 | background
376 | #ec9489
377 |
378 |
379 |
380 | name
381 | Quoted String
382 | scope
383 | string.quoted.double, string.quoted.single
384 | settings
385 |
386 | foreground
387 | #2aa198
388 |
389 |
390 |
391 | name
392 | Quotes
393 | scope
394 | punctuation.definition.string
395 | settings
396 |
397 | foreground
398 | #839496
399 |
400 |
401 |
402 | name
403 | []
404 | scope
405 | meta.brace.square, punctuation.section.brackets
406 | settings
407 |
408 | foreground
409 | #268bd2
410 |
411 |
412 |
413 | name
414 | (),{}
415 | scope
416 | meta.brace.round, meta.brace.curly, punctuation.section, punctuation.section.block, punctuation.definition.parameters, punctuation.section.group
417 | settings
418 |
419 | foreground
420 | #657b83
421 |
422 |
423 |
424 |
425 |
426 |
427 |
428 |
429 | Name
430 | Markdown heading
431 | scope
432 | markup.heading, punctuation.definition.heading.markdown
433 | settings
434 |
435 | foreground
436 | #b58900
437 | fontStyle
438 | bold
439 |
440 |
441 |
442 | Name
443 | Markdown heading
444 | scope
445 | entity.name.section.markdown
446 | settings
447 |
448 | foreground
449 | #b58900
450 | fontStyle
451 | bold
452 |
453 |
454 |
455 |
456 | name
457 | Markdown quote
458 | scope
459 | markup.quote
460 | settings
461 |
462 | foreground
463 | #859900
464 |
465 |
466 |
467 | name
468 | Markdown em
469 | scope
470 | markup.italic
471 | settings
472 |
473 | fontStyle
474 | italic
475 |
476 |
477 |
478 | Name
479 | Markdown strong
480 | scope
481 | markup.bold
482 | settings
483 |
484 | fontStyle
485 | bold
486 |
487 |
488 |
489 | Name
490 | Markdown reference
491 | scope
492 | markup.underline.link.markdown, meta.link.reference constant.other.reference.link.markdown
493 | settings
494 |
495 | foreground
496 | #2aa198
497 |
498 |
499 |
500 | Name
501 | Markdown reference list
502 | scope
503 | constant.other.reference.link.markdown
504 | settings
505 |
506 | foreground
507 | #6c71c4
508 |
509 |
510 |
511 | Name
512 | Markdown linebreak
513 | scope
514 | meta.paragraph.markdown meta.dummy.line-break
515 | settings
516 |
517 | background
518 | #eee8d5
519 |
520 |
521 |
522 |
523 |
524 |
525 |
526 | name
527 | Markdown: Raw Block fenced
528 | scope
529 | markup.raw.block.fenced.markdown, markup.raw.code-fence.markdown
530 | settings
531 |
532 | background
533 | #404040
534 | foreground
535 | #ffffff
536 |
537 |
538 |
539 |
540 |
541 | name
542 | Markup: Raw block
543 | scope
544 | markup.raw.block, markup.raw.inline.markdown
545 | settings
546 |
547 | foreground
548 | #b58900
549 |
550 |
551 |
552 |
553 |
554 |
555 | name
556 | Markup: Zettelkasten note link
557 | scope
558 | markup.zettel.link
559 | settings
560 |
561 | fontStyle
562 | underline
563 | foreground
564 | #268bd2
565 |
566 |
567 |
568 | name
569 | Markup: Zettelkasten note link title
570 | scope
571 | markup.zettel.linktitle
572 | settings
573 |
574 | fontStyle
575 | underline
576 | foreground
577 | #268bd2
578 |
579 |
580 |
581 |
582 |
583 | name
584 | link
585 | scope
586 | meta.link.inline.description.markdown, string.other.link.title, meta.link.inline.description.markdown storage.class
587 | settings
588 |
589 | fontStyle
590 | underline
591 | foreground
592 | #2aa198
593 |
594 |
595 |
596 | name
597 | link
598 | scope
599 | markup.underline.link.markdown, markup.underline.link.markdown comment
600 | settings
601 |
602 | fontStyle
603 | underline
604 | foreground
605 | #268bd2
606 |
607 |
608 |
609 |
610 |
611 |
612 | name
613 | Markup: Zettelkasten tag
614 | scope
615 | markup.zettel.tag, markup.zettel.tag markup.italic
616 | settings
617 |
618 | fontStyle
619 | italic
620 | foreground
621 | #268bd2
622 |
623 |
624 |
625 |
626 |
627 |
628 | name
629 | Markup: Image caption
630 | scope
631 | meta.image.inline.description.markdown
632 | settings
633 |
634 | foreground
635 | #2aa198
636 |
637 |
638 |
639 | name
640 | Markup: Image Link
641 | scope
642 | markup.underline.link.image.markdown
643 | settings
644 |
645 | foreground
646 | #268bd2
647 |
648 |
649 |
650 | name
651 | Markup: Zettelkasten Image attrs in image link
652 | scope
653 | meta.image.inline.markdown.imageattr,punctuation.definition.imageattr
654 | settings
655 |
656 | foreground
657 | #AAAAAA
658 |
659 |
660 |
661 |
662 |
663 | name
664 | Constant: User-defined
665 | scope
666 | text.html.markdown.multimarkdown.custom text.html.markdown.multimarkdown meta.content.multimarkdown constant.other.reference.link.markdown
667 | settings
668 |
669 | foreground
670 | #6c71c4
671 |
672 |
673 |
674 | name
675 | Constant: User-defined
676 | scope
677 | meta.link.reference.def.markdown constant.other.reference.link.markdown
678 | settings
679 |
680 | foreground
681 | #6c71c4
682 |
683 |
684 |
685 |
686 |
687 | name
688 | Markdown Footnote
689 | scope
690 | support.function.footnote.markdown
691 | settings
692 |
693 | foreground
694 | #cb4b16
695 |
696 |
697 |
698 |
699 |
700 | name
701 | Markdown Quote
702 | scope
703 | markup.quote.markdown, markup.quote.markdown comment
704 | settings
705 |
706 | foreground
707 | #657b83
708 | fontStyle
709 | italic
710 |
711 |
712 |
713 |
714 | name
715 | Markdown Quote gt
716 | scope
717 | comment punctuation.definition.blockquote.markdown
718 | settings
719 |
720 | foreground
721 | #657b83
722 |
723 |
724 |
725 |
726 |
727 |
728 |
729 | name
730 | Comment
731 | scope
732 | comment
733 | settings
734 |
735 | foreground
736 | #93a1a1
737 |
738 |
739 |
740 |
741 |
742 | name
743 | Comment
744 | scope
745 | markup.list.numbered.bullet, markup.list.unnumbered.bullet
746 | settings
747 |
748 | foreground
749 | #93a1a1
750 |
751 |
752 |
753 |
754 |
755 |
756 | name
757 | Markdown em
758 | scope
759 | punctuation.definition.italic.begin.markdown, punctuation.definition.italic.end.markdown
760 | settings
761 |
762 | fontStyle
763 | italic
764 | foreground
765 | #AAAAAA
766 |
767 |
768 |
769 | Name
770 | Markdown strong
771 | scope
772 | punctuation.definition.bold.begin.markdown, punctuation.definition.bold.end.markdown
773 | settings
774 |
775 | foreground
776 | #AAAAAA
777 |
778 |
779 |
780 |
781 | Name
782 | Markdown stronger
783 | scope
784 | text.html.markdown.multimarkdown.custom text.html.markdown.multimarkdown meta.content.multimarkdown meta.paragraph.markdown markup.bold.markdown
785 | settings
786 |
787 | fontStyle
788 | bold
789 |
790 |
791 |
792 |
793 |
794 | name
795 | SublimeBracketHighlighter
796 | scope
797 | brackethighlighter.all
798 | settings
799 |
800 | foreground
801 | #93a1a1
802 |
803 |
804 |
805 | uuid
806 | ca238b9c-28f7-42d4-9670-bd0829ef864e
807 |
808 |
--------------------------------------------------------------------------------
/zk-mode/sublime_zk_search.sublime-syntax:
--------------------------------------------------------------------------------
1 | %YAML 1.2
2 | ---
3 | # http://www.sublimetext.com/docs/3/syntax.html
4 | name: Zettelkasten-Saved-Searches
5 | file_extensions:
6 | - md
7 | - mdown
8 | - markdown
9 | - markdn
10 | scope: text.html.markdown
11 | contexts:
12 | main:
13 | - match: (?=(?.
48 | | ([ ]{4}|\t)(?!$)
49 | | [#]{1,6}\s*+
50 | | [ ]{,3}(?[-*_])([ ]{,2}\k){2,}[ \t]*+$
51 | )
52 | comment: |
53 | We could also use an empty end match and set
54 | applyEndPatternLast, but then we must be sure that the begin
55 | pattern will only match stuff matched by the sub-patterns.
56 | push:
57 | - meta_scope: meta.block-level.markdown
58 | - match: |-
59 | (?x)^
60 | (?! [ ]{,3}>.
61 | | ([ ]{4}|\t)
62 | | [#]{1,6}\s*+
63 | | [ ]{,3}(?[-*_])([ ]{,2}\k){2,}[ \t]*+$
64 | )
65 | pop: true
66 | - include: block_quote
67 | - include: block_raw
68 | - include: heading
69 | - include: separator
70 | - match: '(```|~~~|{%\s*highlight)\s*(c)\s*((?:linenos\s*)?%})?$'
71 | captures:
72 | 1: punctuation.definition.fenced.markdown
73 | 2: variable.language.fenced.markdown
74 | 3: punctuation.definition.fenced.markdown
75 | push:
76 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
77 | - meta_content_scope: source.c
78 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
79 | captures:
80 | 1: punctuation.definition.fenced.markdown
81 | 2: variable.language.fenced.markdown
82 | 3: punctuation.definition.fenced.markdown
83 | pop: true
84 | - include: scope:source.c
85 | - match: '(```|~~~|{%\s*highlight)\s*(cpp)\s*((?:linenos\s*)?%})?$'
86 | captures:
87 | 1: punctuation.definition.fenced.markdown
88 | 2: variable.language.fenced.markdown
89 | 3: punctuation.definition.fenced.markdown
90 | push:
91 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
92 | - meta_content_scope: source.c++
93 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
94 | captures:
95 | 1: punctuation.definition.fenced.markdown
96 | 2: variable.language.fenced.markdown
97 | 3: punctuation.definition.fenced.markdown
98 | pop: true
99 | - include: scope:source.c++
100 | - match: '(```|~~~|{%\s*highlight)\s*(coffee|coffeescript)\s*((?:linenos\s*)?%})?$'
101 | captures:
102 | 1: punctuation.definition.fenced.markdown
103 | 2: variable.language.fenced.markdown
104 | 3: punctuation.definition.fenced.markdown
105 | push:
106 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
107 | - meta_content_scope: source.coffee
108 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
109 | captures:
110 | 1: punctuation.definition.fenced.markdown
111 | 2: variable.language.fenced.markdown
112 | 3: punctuation.definition.fenced.markdown
113 | pop: true
114 | - include: scope:source.coffee
115 | - match: '(```|~~~|{%\s*highlight)\s*(jade)\s*((?:linenos\s*)?%})?$'
116 | captures:
117 | 1: punctuation.definition.fenced.markdown
118 | 2: variable.language.fenced.markdown
119 | 3: punctuation.definition.fenced.markdown
120 | push:
121 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
122 | - meta_content_scope: source.jade
123 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
124 | captures:
125 | 1: punctuation.definition.fenced.markdown
126 | 2: variable.language.fenced.markdown
127 | 3: punctuation.definition.fenced.markdown
128 | pop: true
129 | - include: scope:source.jade
130 | - match: '(```|~~~|{%\s*highlight)\s*(css)\s*((?:linenos\s*)?%})?$'
131 | captures:
132 | 1: punctuation.definition.fenced.markdown
133 | 2: variable.language.fenced.markdown
134 | 3: punctuation.definition.fenced.markdown
135 | push:
136 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
137 | - meta_content_scope: source.css
138 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
139 | captures:
140 | 1: punctuation.definition.fenced.markdown
141 | 2: variable.language.fenced.markdown
142 | 3: punctuation.definition.fenced.markdown
143 | pop: true
144 | - include: scope:source.css
145 | - match: '(```|~~~|{%\s*highlight)\s*(csharp)\s*((?:linenos\s*)?%})?$'
146 | captures:
147 | 1: punctuation.definition.fenced.markdown
148 | 2: variable.language.fenced.markdown
149 | 3: punctuation.definition.fenced.markdown
150 | push:
151 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
152 | - meta_content_scope: source.cs
153 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
154 | captures:
155 | 1: punctuation.definition.fenced.markdown
156 | 2: variable.language.fenced.markdown
157 | 3: punctuation.definition.fenced.markdown
158 | pop: true
159 | - include: scope:source.cs
160 | - match: '(```|~~~|{%\s*highlight)\s*(ejs|underscore|lodash)\s*((?:linenos\s*)?%})?$'
161 | captures:
162 | 1: punctuation.definition.fenced.markdown
163 | 2: variable.language.fenced.markdown
164 | 3: punctuation.definition.fenced.markdown
165 | push:
166 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
167 | - meta_content_scope: source.ejs
168 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
169 | captures:
170 | 1: punctuation.definition.fenced.markdown
171 | 2: variable.language.fenced.markdown
172 | 3: punctuation.definition.fenced.markdown
173 | pop: true
174 | - include: scope:source.ejs
175 | - match: '(```|~~~|{%\s*highlight)\s*(erlang)\s*((?:linenos\s*)?%})?$'
176 | captures:
177 | 1: punctuation.definition.fenced.markdown
178 | 2: variable.language.fenced.markdown
179 | 3: punctuation.definition.fenced.markdown
180 | push:
181 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
182 | - meta_content_scope: source.erlang
183 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
184 | captures:
185 | 1: punctuation.definition.fenced.markdown
186 | 2: variable.language.fenced.markdown
187 | 3: punctuation.definition.fenced.markdown
188 | pop: true
189 | - include: scope:source.erlang
190 | - match: '(```|~~~|{%\s*highlight)\s*(diff)\s*((?:linenos\s*)?%})?$'
191 | captures:
192 | 1: punctuation.definition.fenced.markdown
193 | 2: variable.language.fenced.markdown
194 | 3: punctuation.definition.fenced.markdown
195 | push:
196 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
197 | - meta_content_scope: source.diff
198 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
199 | captures:
200 | 1: punctuation.definition.fenced.markdown
201 | 2: variable.language.fenced.markdown
202 | 3: punctuation.definition.fenced.markdown
203 | pop: true
204 | - include: scope:source.diff
205 | - match: '(```|~~~|{%\s*highlight)\s*(go|golang)\s*((?:linenos\s*)?%})?$'
206 | captures:
207 | 1: punctuation.definition.fenced.markdown
208 | 2: variable.language.fenced.markdown
209 | 3: punctuation.definition.fenced.markdown
210 | push:
211 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
212 | - meta_content_scope: source.go
213 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
214 | captures:
215 | 1: punctuation.definition.fenced.markdown
216 | 2: variable.language.fenced.markdown
217 | 3: punctuation.definition.fenced.markdown
218 | pop: true
219 | - include: scope:source.go
220 | - match: '(```|~~~|{%\s*highlight)\s*(graphql)\s*((?:linenos\s*)?%})?$'
221 | captures:
222 | 1: punctuation.definition.fenced.markdown
223 | 2: variable.language.fenced.markdown
224 | 3: punctuation.definition.fenced.markdown
225 | push:
226 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
227 | - meta_content_scope: source.graphql
228 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
229 | captures:
230 | 1: punctuation.definition.fenced.markdown
231 | 2: variable.language.fenced.markdown
232 | 3: punctuation.definition.fenced.markdown
233 | pop: true
234 | - include: scope:source.graphql
235 | - match: '(```|~~~|{%\s*highlight)\s*(hbs|handlebars|html|html5)\s*((?:linenos\s*)?%})?$'
236 | captures:
237 | 1: punctuation.definition.fenced.markdown
238 | 2: variable.language.fenced.markdown
239 | 3: punctuation.definition.fenced.markdown
240 | push:
241 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
242 | - meta_content_scope: text.html.basic
243 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
244 | captures:
245 | 1: punctuation.definition.fenced.markdown
246 | 2: variable.language.fenced.markdown
247 | 3: punctuation.definition.fenced.markdown
248 | pop: true
249 | - include: scope:text.html.basic
250 | - include: scope:text.html.handlebars
251 | - match: '(```|~~~|{%\s*highlight)\s*(ini)\s*((?:linenos\s*)?%})?$'
252 | captures:
253 | 1: punctuation.definition.fenced.markdown
254 | 2: variable.language.fenced.markdown
255 | 3: punctuation.definition.fenced.markdown
256 | push:
257 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
258 | - meta_content_scope: source.ini
259 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
260 | captures:
261 | 1: punctuation.definition.fenced.markdown
262 | 2: variable.language.fenced.markdown
263 | 3: punctuation.definition.fenced.markdown
264 | pop: true
265 | - include: scope:source.ini
266 | - match: '(```|~~~|{%\s*highlight)\s*(java)\s*((?:linenos\s*)?%})?$'
267 | captures:
268 | 1: punctuation.definition.fenced.markdown
269 | 2: variable.language.fenced.markdown
270 | 3: punctuation.definition.fenced.markdown
271 | push:
272 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
273 | - meta_content_scope: source.java
274 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
275 | captures:
276 | 1: punctuation.definition.fenced.markdown
277 | 2: variable.language.fenced.markdown
278 | 3: punctuation.definition.fenced.markdown
279 | pop: true
280 | - include: scope:source.java
281 | - match: '(```|~~~|{%\s*highlight)\s*(javascript|js)\s*((?:linenos\s*)?%})?$'
282 | captures:
283 | 1: punctuation.definition.fenced.markdown
284 | 2: variable.language.fenced.markdown
285 | 3: punctuation.definition.fenced.markdown
286 | push:
287 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
288 | - meta_content_scope: source.js
289 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
290 | captures:
291 | 1: punctuation.definition.fenced.markdown
292 | 2: variable.language.fenced.markdown
293 | 3: punctuation.definition.fenced.markdown
294 | pop: true
295 | - include: scope:source.js
296 | - match: '(```|~~~|{%\s*highlight)\s*(json)\s*((?:linenos\s*)?%})?$'
297 | captures:
298 | 1: punctuation.definition.fenced.markdown
299 | 2: variable.language.fenced.markdown
300 | 3: punctuation.definition.fenced.markdown
301 | push:
302 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
303 | - meta_content_scope: source.json
304 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
305 | captures:
306 | 1: punctuation.definition.fenced.markdown
307 | 2: variable.language.fenced.markdown
308 | 3: punctuation.definition.fenced.markdown
309 | pop: true
310 | - include: scope:source.json
311 | - match: '(```|{%\s*highlight)\s*(julia|jl)\s*((?:linenos\s*)?%})?$'
312 | captures:
313 | 1: punctuation.definition.fenced.markdown
314 | 2: variable.language.fenced.markdown
315 | 3: punctuation.definition.fenced.markdown
316 | push:
317 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
318 | - meta_content_scope: source.julia
319 | - match: '(```|{%\s*endhighlight\s*%})\n'
320 | captures:
321 | 1: punctuation.definition.fenced.markdown
322 | 2: variable.language.fenced.markdown
323 | 3: punctuation.definition.fenced.markdown
324 | pop: true
325 | - include: scope:source.julia
326 | - match: '(```|{%\s*highlight)\s*(less)\s*((?:linenos\s*)?%})?$'
327 | captures:
328 | 1: punctuation.definition.fenced.markdown
329 | 2: variable.language.fenced.markdown
330 | 3: punctuation.definition.fenced.markdown
331 | push:
332 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
333 | - meta_content_scope: source.css.less
334 | - match: '(```|{%\s*endhighlight\s*%})\n'
335 | captures:
336 | 1: punctuation.definition.fenced.markdown
337 | 2: variable.language.fenced.markdown
338 | 3: punctuation.definition.fenced.markdown
339 | pop: true
340 | - include: scope:source.css.less
341 | - match: '(```|~~~|{%\s*highlight)\s*(ls|livescript|LiveScript)\s*((?:linenos\s*)?%})?$'
342 | captures:
343 | 1: punctuation.definition.fenced.markdown
344 | 2: variable.language.fenced.markdown
345 | 3: punctuation.definition.fenced.markdown
346 | push:
347 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
348 | - meta_content_scope: source.livescript
349 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
350 | captures:
351 | 1: punctuation.definition.fenced.markdown
352 | 2: variable.language.fenced.markdown
353 | 3: punctuation.definition.fenced.markdown
354 | pop: true
355 | - include: scope:source.livescript
356 | - match: '(```|~~~|{%\s*highlight)\s*(lua)\s*((?:linenos\s*)?%})?$'
357 | captures:
358 | 1: punctuation.definition.fenced.markdown
359 | 2: variable.language.fenced.markdown
360 | 3: punctuation.definition.fenced.markdown
361 | push:
362 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
363 | - meta_content_scope: source.lua
364 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
365 | captures:
366 | 1: punctuation.definition.fenced.markdown
367 | 2: variable.language.fenced.markdown
368 | 3: punctuation.definition.fenced.markdown
369 | pop: true
370 | - include: scope:source.lua
371 | - match: '(```|~~~|{%\s*highlight)\s*(md|markdown)\s*((?:linenos\s*)?%})?$'
372 | captures:
373 | 1: punctuation.definition.fenced.markdown
374 | 2: variable.language.fenced.markdown
375 | 3: punctuation.definition.fenced.markdown
376 | push:
377 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
378 | - meta_content_scope: text.html.markdown
379 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
380 | captures:
381 | 1: punctuation.definition.fenced.markdown
382 | 2: variable.language.fenced.markdown
383 | 3: punctuation.definition.fenced.markdown
384 | pop: true
385 | - include: scope:text.html.markdown
386 | - match: '(```|~~~|{%\s*highlight)\s*(nginx)\s*((?:linenos\s*)?%})?$'
387 | captures:
388 | 1: punctuation.definition.fenced.markdown
389 | 2: variable.language.fenced.markdown
390 | 3: punctuation.definition.fenced.markdown
391 | push:
392 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
393 | - meta_content_scope: source.nginx
394 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
395 | captures:
396 | 1: punctuation.definition.fenced.markdown
397 | 2: variable.language.fenced.markdown
398 | 3: punctuation.definition.fenced.markdown
399 | pop: true
400 | - include: scope:source.nginx
401 | - match: '(```|~~~|{%\s*highlight)\s*(swift)\s*((?:linenos\s*)?%})?$'
402 | captures:
403 | 1: punctuation.definition.fenced.markdown
404 | 2: variable.language.fenced.markdown
405 | 3: punctuation.definition.fenced.markdown
406 | push:
407 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
408 | - meta_content_scope: source.swift
409 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
410 | captures:
411 | 1: punctuation.definition.fenced.markdown
412 | 2: variable.language.fenced.markdown
413 | 3: punctuation.definition.fenced.markdown
414 | pop: true
415 | - include: scope:source.swift
416 | - match: '(```|~~~|{%\s*highlight)\s*(obj(?:ective\-|)c)\s*((?:linenos\s*)?%})?$'
417 | captures:
418 | 1: punctuation.definition.fenced.markdown
419 | 2: variable.language.fenced.markdown
420 | 3: punctuation.definition.fenced.markdown
421 | push:
422 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
423 | - meta_content_scope: source.objc
424 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
425 | captures:
426 | 1: punctuation.definition.fenced.markdown
427 | 2: variable.language.fenced.markdown
428 | 3: punctuation.definition.fenced.markdown
429 | pop: true
430 | - include: scope:source.objc
431 | - match: '(```|~~~|{%\s*highlight)\s*(obj(?:ective\-|)c\+\+)\s*((?:linenos\s*)?%})?$'
432 | captures:
433 | 1: punctuation.definition.fenced.markdown
434 | 2: variable.language.fenced.markdown
435 | 3: punctuation.definition.fenced.markdown
436 | push:
437 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
438 | - meta_content_scope: source.objc++
439 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
440 | captures:
441 | 1: punctuation.definition.fenced.markdown
442 | 2: variable.language.fenced.markdown
443 | 3: punctuation.definition.fenced.markdown
444 | pop: true
445 | - include: scope:source.objc++
446 | - match: '(```|~~~|{%\s*highlight)\s*(perl)\s*((?:linenos\s*)?%})?$'
447 | captures:
448 | 1: punctuation.definition.fenced.markdown
449 | 2: variable.language.fenced.markdown
450 | 3: punctuation.definition.fenced.markdown
451 | push:
452 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
453 | - meta_content_scope: source.perl
454 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
455 | captures:
456 | 1: punctuation.definition.fenced.markdown
457 | 2: variable.language.fenced.markdown
458 | 3: punctuation.definition.fenced.markdown
459 | pop: true
460 | - include: scope:source.perl
461 | - match: '(```|~~~|{%\s*highlight)\s*(php)\s*((?:linenos\s*)?%})?$'
462 | captures:
463 | 1: punctuation.definition.fenced.markdown
464 | 2: variable.language.fenced.markdown
465 | 3: punctuation.definition.fenced.markdown
466 | push:
467 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
468 | - meta_content_scope: source.php
469 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
470 | captures:
471 | 1: punctuation.definition.fenced.markdown
472 | 2: variable.language.fenced.markdown
473 | 3: punctuation.definition.fenced.markdown
474 | pop: true
475 | - include: scope:source.php
476 | - match: '(```|~~~|{%\s*highlight)\s*(python)\s*((?:linenos\s*)?%})?$'
477 | captures:
478 | 1: punctuation.definition.fenced.markdown
479 | 2: variable.language.fenced.markdown
480 | 3: punctuation.definition.fenced.markdown
481 | push:
482 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
483 | - meta_content_scope: source.python
484 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
485 | captures:
486 | 1: punctuation.definition.fenced.markdown
487 | 2: variable.language.fenced.markdown
488 | 3: punctuation.definition.fenced.markdown
489 | pop: true
490 | - include: scope:source.python
491 | - match: '(```|~~~)\s*\{?\s*(r)(?:[ \},].*$|\}?$)'
492 | captures:
493 | 1: punctuation.definition.fenced.markdown
494 | 2: variable.language.fenced.markdown
495 | 3: punctuation.definition.fenced.markdown
496 | push:
497 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
498 | - meta_content_scope: source.r
499 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
500 | captures:
501 | 1: punctuation.definition.fenced.markdown
502 | 2: variable.language.fenced.markdown
503 | 3: punctuation.definition.fenced.markdown
504 | pop: true
505 | - include: scope:source.r
506 | - match: '(```|~~~|{%\s*highlight)\s*(ruby)\s*((?:linenos\s*)?%})?$'
507 | captures:
508 | 1: punctuation.definition.fenced.markdown
509 | 2: variable.language.fenced.markdown
510 | 3: punctuation.definition.fenced.markdown
511 | push:
512 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
513 | - meta_content_scope: source.ruby
514 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
515 | captures:
516 | 1: punctuation.definition.fenced.markdown
517 | 2: variable.language.fenced.markdown
518 | 3: punctuation.definition.fenced.markdown
519 | pop: true
520 | - include: scope:source.ruby
521 | - match: '(```|~~~|{%\s*highlight)\s*(rails|erb|html\+ruby)\s*((?:linenos\s*)?%})?$'
522 | captures:
523 | 1: punctuation.definition.fenced.markdown
524 | 2: variable.language.fenced.markdown
525 | 3: punctuation.definition.fenced.markdown
526 | push:
527 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
528 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
529 | captures:
530 | 1: punctuation.definition.fenced.markdown
531 | 2: variable.language.fenced.markdown
532 | 3: punctuation.definition.fenced.markdown
533 | pop: true
534 | - match: ''
535 | push:
536 | - meta_content_scope: text.html.ruby
537 | - include: scope:text.html.ruby
538 | with_prototype:
539 | - match: '(?=(```|~~~|{%\s*endhighlight\s*%})\n)'
540 | pop: true
541 | - match: '(```|~~~|{%\s*highlight)\s*(rust)\s*((?:linenos\s*)?%})?$'
542 | captures:
543 | 1: punctuation.definition.fenced.markdown
544 | 2: variable.language.fenced.markdown
545 | 3: punctuation.definition.fenced.markdown
546 | push:
547 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
548 | - meta_content_scope: source.rust
549 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
550 | captures:
551 | 1: punctuation.definition.fenced.markdown
552 | 2: variable.language.fenced.markdown
553 | 3: punctuation.definition.fenced.markdown
554 | pop: true
555 | - include: scope:source.rust
556 | - match: '(```|~~~|{%\s*highlight)\s*(sass)\s*((?:linenos\s*)?%})?$'
557 | captures:
558 | 1: punctuation.definition.fenced.markdown
559 | 2: variable.language.fenced.markdown
560 | 3: punctuation.definition.fenced.markdown
561 | push:
562 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
563 | - meta_content_scope: source.sass
564 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
565 | captures:
566 | 1: punctuation.definition.fenced.markdown
567 | 2: variable.language.fenced.markdown
568 | 3: punctuation.definition.fenced.markdown
569 | pop: true
570 | - include: scope:source.sass
571 | - match: '(```|~~~|{%\s*highlight)\s*(scala)\s*((?:linenos\s*)?%})?$'
572 | captures:
573 | 1: punctuation.definition.fenced.markdown
574 | 2: variable.language.fenced.markdown
575 | 3: punctuation.definition.fenced.markdown
576 | push:
577 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
578 | - meta_content_scope: source.scala
579 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
580 | captures:
581 | 1: punctuation.definition.fenced.markdown
582 | 2: variable.language.fenced.markdown
583 | 3: punctuation.definition.fenced.markdown
584 | pop: true
585 | - include: scope:source.scala
586 | - match: '(```|~~~|{%\s*highlight)\s*(scss)\s*((?:linenos\s*)?%})?$'
587 | captures:
588 | 1: punctuation.definition.fenced.markdown
589 | 2: variable.language.fenced.markdown
590 | 3: punctuation.definition.fenced.markdown
591 | push:
592 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
593 | - meta_content_scope: source.scss
594 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
595 | captures:
596 | 1: punctuation.definition.fenced.markdown
597 | 2: variable.language.fenced.markdown
598 | 3: punctuation.definition.fenced.markdown
599 | pop: true
600 | - include: scope:source.scss
601 | - match: '(```|~~~|{%\s*highlight)\s*(sh|shell|bash)\s*((?:linenos\s*)?%})?$'
602 | captures:
603 | 1: punctuation.definition.fenced.markdown
604 | 2: variable.language.fenced.markdown
605 | 3: punctuation.definition.fenced.markdown
606 | push:
607 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
608 | - meta_content_scope: source.shell
609 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
610 | captures:
611 | 1: punctuation.definition.fenced.markdown
612 | 2: variable.language.fenced.markdown
613 | 3: punctuation.definition.fenced.markdown
614 | pop: true
615 | - include: scope:source.shell
616 | - match: '(```|~~~|{%\s*highlight)\s*(sql|mysql|ddl|dml)\s*((?:linenos\s*)?%})?$'
617 | captures:
618 | 1: punctuation.definition.fenced.markdown
619 | 2: variable.language.fenced.markdown
620 | 3: punctuation.definition.fenced.markdown
621 | push:
622 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
623 | - meta_content_scope: source.sql
624 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
625 | captures:
626 | 1: punctuation.definition.fenced.markdown
627 | 2: variable.language.fenced.markdown
628 | 3: punctuation.definition.fenced.markdown
629 | pop: true
630 | - include: scope:source.sql
631 | - match: '(```|~~~|{%\s*highlight)\s*(postgresql|postgres|pgsql)\s*((?:linenos\s*)?%})?$'
632 | captures:
633 | 1: punctuation.definition.fenced.markdown
634 | 2: variable.language.fenced.markdown
635 | 3: punctuation.definition.fenced.markdown
636 | push:
637 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
638 | - meta_content_scope: source.pgsql
639 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
640 | captures:
641 | 1: punctuation.definition.fenced.markdown
642 | 2: variable.language.fenced.markdown
643 | 3: punctuation.definition.fenced.markdown
644 | pop: true
645 | - include: scope:source.pgsql
646 | - match: '(```|~~~|{%\s*highlight)\s*(styl)\s*((?:linenos\s*)?%})?$'
647 | captures:
648 | 1: punctuation.definition.fenced.markdown
649 | 2: variable.language.fenced.markdown
650 | 3: punctuation.definition.fenced.markdown
651 | push:
652 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
653 | - meta_content_scope: source.stylus
654 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
655 | captures:
656 | 1: punctuation.definition.fenced.markdown
657 | 2: variable.language.fenced.markdown
658 | 3: punctuation.definition.fenced.markdown
659 | pop: true
660 | - include: scope:source.stylus
661 | - match: '(```|~~~|{%\s*highlight)\s*(swig|liquid)\s*((?:linenos\s*)?%})?$'
662 | captures:
663 | 1: punctuation.definition.fenced.markdown
664 | 2: variable.language.fenced.markdown
665 | 3: punctuation.definition.fenced.markdown
666 | push:
667 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
668 | - meta_content_scope: text.html.swig
669 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
670 | captures:
671 | 1: punctuation.definition.fenced.markdown
672 | 2: variable.language.fenced.markdown
673 | 3: punctuation.definition.fenced.markdown
674 | pop: true
675 | - include: scope:text.html.swig
676 | - match: '(```|~~~|{%\s*highlight)\s*(xml)\s*((?:linenos\s*)?%})?$'
677 | captures:
678 | 1: punctuation.definition.fenced.markdown
679 | 2: variable.language.fenced.markdown
680 | 3: punctuation.definition.fenced.markdown
681 | push:
682 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
683 | - meta_content_scope: text.xml
684 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
685 | captures:
686 | 1: punctuation.definition.fenced.markdown
687 | 2: variable.language.fenced.markdown
688 | 3: punctuation.definition.fenced.markdown
689 | pop: true
690 | - include: scope:text.xml
691 | - match: '(```|~~~|{%\s*highlight)\s*(yaml)\s*((?:linenos\s*)?%})?$'
692 | captures:
693 | 1: punctuation.definition.fenced.markdown
694 | 2: variable.language.fenced.markdown
695 | 3: punctuation.definition.fenced.markdown
696 | push:
697 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
698 | - meta_content_scope: source.yaml
699 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
700 | captures:
701 | 1: punctuation.definition.fenced.markdown
702 | 2: variable.language.fenced.markdown
703 | 3: punctuation.definition.fenced.markdown
704 | pop: true
705 | - include: scope:source.yaml
706 | - match: '(```|~~~|{%\s*highlight)\s*(\w*)\s*((?:linenos\s*)?%})?$'
707 | captures:
708 | 1: punctuation.definition.fenced.markdown
709 | 2: variable.language.fenced.markdown
710 | 3: punctuation.definition.fenced.markdown
711 | push:
712 | - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
713 | - match: '(```|~~~|{%\s*endhighlight\s*%})\n'
714 | captures:
715 | 1: punctuation.definition.fenced.markdown
716 | 2: variable.language.fenced.markdown
717 | 3: punctuation.definition.fenced.markdown
718 | pop: true
719 | - match: '^[ ]{0,3}([*+-])(?=\s)'
720 | captures:
721 | 1: punctuation.definition.list_item.markdown
722 | push:
723 | - meta_scope: markup.list.unnumbered.markdown
724 | - match: ^(?=\S)
725 | captures:
726 | 1: punctuation.definition.list_item.markdown
727 | pop: true
728 | - include: list-paragraph
729 | - match: '^[ ]{0,3}([0-9]+)(\.)(?=\s)'
730 | captures:
731 | 1: punctuation.definition.list_item.markdown punctuation.definition.list_item.number.markdown
732 | 2: punctuation.definition.list_item.markdown
733 | push:
734 | - meta_scope: markup.list.numbered.markdown
735 | - match: ^(?=\S)
736 | captures:
737 | 1: punctuation.definition.list_item.markdown punctuation.definition.list_item.number.markdown
738 | 2: punctuation.definition.list_item.markdown
739 | pop: true
740 | - include: list-paragraph
741 | - match: '^(?=<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del)\b)(?!.*?\1>)'
742 | comment: Markdown formatting is disabled inside block-level tags.
743 | push:
744 | - meta_scope: meta.disable-markdown
745 | - match: (?<=^\1>$\n)
746 | pop: true
747 | - include: scope:text.html.basic
748 | - include: scope:text.html.handlebars
749 | - match: '^(?=<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del)\b)'
750 | comment: Same rule but for one line disables.
751 | push:
752 | - meta_scope: meta.disable-markdown
753 | - match: $\n?
754 | pop: true
755 | - include: scope:text.html.basic
756 | - include: scope:text.html.handlebars
757 | - match: |-
758 | (?x:
759 | \s* # Leading whitespace
760 | (\[)(.+?)(\])(:) # Reference name
761 | [ \t]* # Optional whitespace
762 | ()(\S+?)(>?) # The url
763 | [ \t]* # Optional whitespace
764 | (?:
765 | ((\().+?(\))) # Match title in quotes…
766 | | ((").+?(")) # or in parens.
767 | )? # Title is optional
768 | \s* # Optional whitespace
769 | $
770 | )
771 | scope: meta.link.reference.def.markdown
772 | captures:
773 | 1: punctuation.definition.constant.markdown
774 | 2: constant.other.reference.link.markdown
775 | 3: punctuation.definition.constant.markdown
776 | 4: punctuation.separator.key-value.markdown
777 | 5: punctuation.definition.link.markdown
778 | 6: markup.underline.link.markdown
779 | 7: punctuation.definition.link.markdown
780 | 8: string.other.link.description.title.markdown
781 | 9: punctuation.definition.string.begin.markdown
782 | 10: punctuation.definition.string.end.markdown
783 | 11: string.other.link.description.title.markdown
784 | 12: punctuation.definition.string.begin.markdown
785 | 13: punctuation.definition.string.end.markdown
786 | - match: '^(?=\S)(?![=-]{3,}(?=$))'
787 | push:
788 | - meta_scope: meta.paragraph.markdown
789 | - include: html_comment
790 | - match: '^(?:\s*$|(?=[ ]{,3}>.))|(?=[ \t]*\n)(?<=^===|^====|=====|^---|^----|-----)[ \t]*\n|(?=^#)'
791 | pop: true
792 | - include: inline
793 | - include: scope:text.html.handlebars
794 | - match: '^(={3,})(?=[ \t]*$)'
795 | scope: markup.heading.1.markdown
796 | captures:
797 | 1: punctuation.definition.heading.markdown
798 | - match: '^(-{3,})(?=[ \t]*$)'
799 | scope: markup.heading.2.markdown
800 | captures:
801 | 1: punctuation.definition.heading.markdown
802 |
803 | html_comment:
804 | - match: