Skip to content

Commit

Permalink
more examples + fix latex
Browse files Browse the repository at this point in the history
  • Loading branch information
harrydowning committed Aug 25, 2024
1 parent e0e8a69 commit 4c48840
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
23 changes: 22 additions & 1 deletion example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ csharp-example: | # csharp
}
css-example: | # css
.HelloWorld { }
h1::before {
content: "Hello, World!"
}
cuda-cpp-example: | # cuda
// First Line Issue
Expand Down Expand Up @@ -157,6 +159,25 @@ json-example: | # json
"message": "Hello, World!"
}
jsonc-example: | # jsonc
{ // comment
"message": "Hello, World!"
}
jsonl-example: | # jsonl
{"message": "Hello, World!"}
{"message": "Hello, World!"}
julia-example: | # julia
println("hello world")
latex-example: | # latex
\documentclass[12pt]{article}
\begin{document}
Hello world!
\end{document}
regex-example: | # regex
Expand Down
5 changes: 4 additions & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ const LANGUAGES = {
scopeName: "source.js.jsx",
},
julia: "source.julia",
latex: "text.tex.latex",
latex: {
scopeName: "text.tex.latex",
stripIndent: true,
},
less: "source.css.less",
log: "text.log",
lua: "source.lua",
Expand Down
1 change: 1 addition & 0 deletions syntaxes/injection.json
Original file line number Diff line number Diff line change
Expand Up @@ -1666,6 +1666,7 @@
{
"begin": "(?>^|\\G)([ ]+)(?! )",
"end": "^(?!\\1|\\s*$)",
"while": "\\1",
"name": "meta.embedded.inline.latex",
"patterns": [
{
Expand Down

0 comments on commit 4c48840

Please sign in to comment.