improvement: Use new multi letter sigils.

This commit is contained in:
James Harton 2024-03-13 16:25:13 +13:00
parent a46f86088e
commit 472c1d242b
3 changed files with 19 additions and 19 deletions

View file

@ -7,11 +7,11 @@ Elixir applications.
Extends Elixir's syntax highlighting to support:
- Handlebars inside `~B` sigils.
- Handlebars inside `~HB` sigils.
- Handlebars inside triple backtick markdown code blocks.
- JavaScript inside `~j` sigils.
- JavaScript inside `~JS` sigils.
- JavaScript inside triple backtick markdown code blocks.
- TypeScript inside `~t` sigils.
- TypeScript inside `~TS` sigils.
- TypeScript inside triple backtick markdown code blocks.
## License

View file

@ -27,7 +27,7 @@
{
"comment": "Handlebars sigil with heredoc (double quotes)",
"name": "text.html.handlebars",
"begin": "\\s?(~B\"\"\")$",
"begin": "\\s?(~HB\"\"\")$",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
@ -48,7 +48,7 @@
{
"comment": "Handlebars sigil with double quotes",
"name": "text.html.handlebars",
"begin": "~B\\\"",
"begin": "~HB\\\"",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
@ -69,7 +69,7 @@
{
"comment": "Handlebars sigil with square brackets",
"name": "text.html.handlebars",
"begin": "~B\\[",
"begin": "~HB\\[",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
@ -90,7 +90,7 @@
{
"comment": "Handlebars sigil with parentheses",
"name": "text.html.handlebars",
"begin": "~B\\(",
"begin": "~HB\\(",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
@ -111,7 +111,7 @@
{
"comment": "Handlebars sigil with curly braces",
"name": "text.html.handlebars",
"begin": "~B\\{",
"begin": "~HB\\{",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
@ -153,7 +153,7 @@
{
"comment": "JavaScript sigil with heredoc (double quotes)",
"name": "source.js",
"begin": "\\s?(~j\"\"\")$",
"begin": "\\s?(~JS\"\"\")$",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
@ -174,7 +174,7 @@
{
"comment": "JavaScript sigil with double quotes",
"name": "source.js",
"begin": "~j\\\"",
"begin": "~JS\\\"",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
@ -195,7 +195,7 @@
{
"comment": "JavaScript sigil with square brackets",
"name": "source.js",
"begin": "~j\\[",
"begin": "~JS\\[",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
@ -216,7 +216,7 @@
{
"comment": "JavaScript sigil with parentheses",
"name": "source.js",
"begin": "~j\\(",
"begin": "~JS\\(",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
@ -237,7 +237,7 @@
{
"comment": "JavaScript sigil with curly brackets",
"name": "source.js",
"begin": "~j\\{",
"begin": "~JS\\{",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
@ -279,7 +279,7 @@
{
"comment": "TypeScript sigil with heredoc (double quotes)",
"name": "source.ts",
"begin": "\\s?(~t\"\"\")",
"begin": "\\s?(~TS\"\"\")",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
@ -300,7 +300,7 @@
{
"comment": "TypeScript sigil with double quotes",
"name": "source.ts",
"begin": "~t\\\"",
"begin": "~TS\\\"",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
@ -321,7 +321,7 @@
{
"comment": "TypeScript sigil with square brackets",
"name": "source.ts",
"begin": "~t\\[",
"begin": "~TS\\[",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
@ -342,7 +342,7 @@
{
"comment": "TypeScript sigil with parentheses",
"name": "source.ts",
"begin": "~t\\(",
"begin": "~TS\\(",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
@ -363,7 +363,7 @@
{
"comment": "TypeScript sigil with curly brackets",
"name": "source.ts",
"begin": "~t\\{",
"begin": "~TS\\{",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"

View file

@ -8,7 +8,7 @@
"license": "HL3-FULL",
"repository": {
"type": "git",
"url": "https://gitlab.com/jimsy/vscode-cinder.git"
"url": "https://harton.dev/cinder/vscode-cinder.git"
},
"engines": {
"vscode": "^1.25.1"