Skip to content

Commit 23229dd

Browse files
committed
fixed fenced langs
1 parent ecc0922 commit 23229dd

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

Note-fenced.sublime-syntax

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ contexts:
2222
- include: fenced-lisp
2323
- include: fenced-matlab
2424
- include: fenced-obj-c
25-
# - include: fenced-perl
25+
- include: fenced-perl
2626
- include: fenced-php
2727
- include: fenced-python
2828
- include: fenced-r
@@ -31,7 +31,7 @@ contexts:
3131
- include: fenced-sass
3232
- include: fenced-scala
3333
- include: fenced-scss
34-
# - include: fenced-shell
34+
- include: fenced-shell
3535
- include: fenced-sql
3636
- include: fenced-tex
3737
- include: fenced-xml
@@ -256,19 +256,19 @@ contexts:
256256
2: meta.definition.language.raw.block.fenced.markdown
257257
pop: true
258258
- include: scope:source.objc
259-
# fenced-perl:
260-
# - match: '((?:^|\G)\s*[`~]{3,})\s*(perl)\s*$'
261-
# captures:
262-
# 1: punctuation.definition.raw.block.fenced.markdown
263-
# 2: meta.definition.language.raw.block.fenced.markdown
264-
# push:
265-
# - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown meta.language.perl
266-
# - match: '^(\1)[ \t]*(\n|$)'
267-
# captures:
268-
# 1: punctuation.definition.raw.block.fenced.markdown
269-
# 2: meta.definition.language.raw.block.fenced.markdown
270-
# pop: true
271-
# - include: scope:source.perl
259+
fenced-perl:
260+
- match: '((?:^|\G)\s*[`~]{3,})\s*(perl)\s*$'
261+
captures:
262+
1: punctuation.definition.raw.block.fenced.markdown
263+
2: meta.definition.language.raw.block.fenced.markdown
264+
push:
265+
- meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown meta.language.perl
266+
- match: '^(\1)[ \t]*(\n|$)'
267+
captures:
268+
1: punctuation.definition.raw.block.fenced.markdown
269+
2: meta.definition.language.raw.block.fenced.markdown
270+
pop: true
271+
- include: scope:source.perl
272272
fenced-php:
273273
- match: '((?:^|\G)\s*[`~]{3,})\s*(php)\s*$'
274274
captures:
@@ -373,19 +373,19 @@ contexts:
373373
2: meta.definition.language.raw.block.fenced.markdown
374374
pop: true
375375
- include: scope:source.scss
376-
# fenced-shell:
377-
# - match: '((?:^|\G)\s*[`~]{3,})\s*(sh|shell|bash)\s*$'
378-
# captures:
379-
# 1: punctuation.definition.raw.block.fenced.markdown
380-
# 2: meta.definition.language.raw.block.fenced.markdown
381-
# push:
382-
# - meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown meta.language.shell
383-
# - match: '^(\1)[ \t]*(\n|$)'
384-
# captures:
385-
# 1: punctuation.definition.raw.block.fenced.markdown
386-
# 2: meta.definition.language.raw.block.fenced.markdown
387-
# pop: true
388-
# - include: scope:source.shell
376+
fenced-shell:
377+
- match: '((?:^|\G)\s*[`~]{3,})\s*(sh|shell|bash)\s*$'
378+
captures:
379+
1: punctuation.definition.raw.block.fenced.markdown
380+
2: meta.definition.language.raw.block.fenced.markdown
381+
push:
382+
- meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown meta.language.shell
383+
- match: '^(\1)[ \t]*(\n|$)'
384+
captures:
385+
1: punctuation.definition.raw.block.fenced.markdown
386+
2: meta.definition.language.raw.block.fenced.markdown
387+
pop: true
388+
- include: scope:source.shell
389389
fenced-sql:
390390
- match: '((?:^|\G)\s*[`~]{3,})\s*(sql)\s*$'
391391
captures:

0 commit comments

Comments
 (0)