File tree 8 files changed +53
-8
lines changed
8 files changed +53
-8
lines changed Original file line number Diff line number Diff line change
1
+ [run]
2
+ omit = */tests/*
Original file line number Diff line number Diff line change 21
21
jobs :
22
22
lint :
23
23
name : Python ${{ matrix.python }}
24
- runs-on : ubuntu-20.04
24
+ runs-on : ubuntu-latest
25
25
strategy :
26
26
matrix :
27
27
python :
30
30
- ' x64'
31
31
steps :
32
32
- name : Checkout Repository
33
- uses : actions/checkout@v3
33
+ uses : actions/checkout@v4
34
34
- name : Set up Python ${{ matrix.python }}
35
- uses : actions/setup-python@v3
35
+ uses : actions/setup-python@v5
36
36
with :
37
37
python-version : ${{ matrix.python }}
38
38
architecture : ${{ matrix.arch }}
Original file line number Diff line number Diff line change @@ -30,10 +30,16 @@ jobs:
30
30
include :
31
31
- build : 4107
32
32
default_packages : v4107
33
+ - build : 4126
34
+ default_packages : v4126
35
+ - build : 4152
36
+ default_packages : v4152
37
+ - build : 4169
38
+ default_packages : v4169
33
39
- build : latest
34
40
default_packages : master
35
41
steps :
36
- - uses : actions/checkout@v3
42
+ - uses : actions/checkout@v4
37
43
- uses : SublimeText/syntax-test-action@v2
38
44
with :
39
45
build : ${{ matrix.build }}
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ jobs:
28
28
matrix :
29
29
st-version : [4]
30
30
steps :
31
- - uses : actions/checkout@v3
31
+ - uses : actions/checkout@v4
32
32
- uses : SublimeText/UnitTesting/actions/setup@v1
33
33
with :
34
34
sublime-text-version : ${{ matrix.st-version }}
35
35
- uses : SublimeText/UnitTesting/actions/run-tests@v1
36
36
with :
37
37
coverage : true
38
- codecov-upload : true
38
+ - uses : codecov/codecov-action@v4
Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ jobs:
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- name : Checkout Repository
17
- uses : actions/checkout@v3
17
+ uses : actions/checkout@v4
18
18
with :
19
19
fetch-depth : 0
20
20
- name : Set up Python
21
- uses : actions/setup-python@v2
21
+ uses : actions/setup-python@v5
22
22
with :
23
23
python-version : ' 3.8'
24
24
- name : Install MkDocs
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ feedback you can use [GitHub issues][issues].
10
10
11
11
## New Features
12
12
13
+ - syntax highlighting for LaTeX in fenced code blocks
14
+
13
15
## Changes
14
16
15
17
[ issues ] : https://github.com/SublimeText-Markdown/MarkdownEditing/issues
Original file line number Diff line number Diff line change @@ -1120,6 +1120,7 @@ contexts:
1120
1120
- include : fenced-jsonc
1121
1121
- include : fenced-jspx
1122
1122
- include : fenced-jsx
1123
+ - include : fenced-latex
1123
1124
- include : fenced-lisp
1124
1125
- include : fenced-lua
1125
1126
- include : fenced-makefile
@@ -1616,6 +1617,28 @@ contexts:
1616
1617
1: punctuation.definition.raw.code-fence.end.markdown
1617
1618
2: meta.fold.code-fence.end.markdown
1618
1619
1620
+ fenced-latex :
1621
+ - match : |-
1622
+ (?x)
1623
+ {{fenced_code_block_start}}
1624
+ (?i:\s*(latex|tex))
1625
+ {{fenced_code_block_trailing_infostring_characters}}
1626
+ captures:
1627
+ 0: meta.code-fence.definition.begin.latex.markdown-gfm
1628
+ 2: punctuation.definition.raw.code-fence.begin.markdown
1629
+ 5: constant.other.language-name.markdown
1630
+ 6: comment.line.infostring.markdown
1631
+ 7: meta.fold.code-fence.begin.markdown
1632
+ embed: scope:text.tex.latex
1633
+ embed_scope:
1634
+ markup.raw.code-fence.latex.markdown-gfm
1635
+ text.tex.latex
1636
+ escape: '{{fenced_code_block_escape}}'
1637
+ escape_captures:
1638
+ 0: meta.code-fence.definition.end.latex.markdown-gfm
1639
+ 1: punctuation.definition.raw.code-fence.end.markdown
1640
+ 2: meta.fold.code-fence.end.markdown
1641
+
1619
1642
fenced-lisp :
1620
1643
- match : |-
1621
1644
(?x)
Original file line number Diff line number Diff line change @@ -1911,6 +1911,18 @@ for (var i = 0; i < 10; i++) {
1911
1911
|^^ meta.code-fence.definition.end.jsx.markdown-gfm punctuation.definition.raw.code-fence.end.markdown
1912
1912
| ^ meta.code-fence.definition.end.jsx.markdown-gfm meta.fold.code-fence.end - punctuation
1913
1913
1914
+ ``` latex
1915
+ | <- meta.code-fence.definition.begin.latex.markdown-gfm punctuation.definition.raw.code-fence.begin.markdown
1916
+ |^^ meta.code-fence.definition.begin.latex.markdown-gfm punctuation.definition.raw.code-fence.begin.markdown
1917
+ | ^^^^^ meta.code-fence.definition.begin.latex.markdown-gfm constant.other.language-name.markdown
1918
+ | ^ meta.code-fence.definition.begin.latex.markdown-gfm meta.fold.code-fence.begin.markdown - punctuation
1919
+
1920
+ | <- markup.raw.code-fence.latex.markdown-gfm text.tex.latex
1921
+ ```
1922
+ | <- meta.code-fence.definition.end.latex.markdown-gfm punctuation.definition.raw.code-fence.end.markdown
1923
+ |^^ meta.code-fence.definition.end.latex.markdown-gfm punctuation.definition.raw.code-fence.end.markdown
1924
+ | ^ meta.code-fence.definition.end.latex.markdown-gfm meta.fold.code-fence.end.markdown - punctuation
1925
+
1914
1926
``` lisp
1915
1927
|^^^^^^ meta.code-fence.definition.begin - meta.fold
1916
1928
| ^ meta.code-fence.definition.begin meta.fold.code-fence.begin
You can’t perform that action at this time.
0 commit comments