Rename the language from Dino to Rex
Files use .rex, the command is rex, and the crate, runtime prefixes, docs, editor files and examples all use the new name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2f44f09b6a
commit
7cf9727bcd
94 files changed
+858
-858
No files matched your search
+29
-29
@@ -1,20 +1,20 @@
|
||||
# Editor support for Dino
|
||||
# Editor support for Rex
|
||||
|
||||
Everything here talks to the compiler itself, so what you see in the editor is exactly what
|
||||
`dino run` would tell you.
|
||||
`rex run` would tell you.
|
||||
|
||||
| You get | How |
|
||||
|---------|-----|
|
||||
| Syntax colours | a grammar file (VS Code, Neovim, Vim) |
|
||||
| Errors underlined as you type | the language server, `dino lsp` |
|
||||
| Format the file (and on save) | the same server, using `dino fmt` |
|
||||
| Errors underlined as you type | the language server, `rex lsp` |
|
||||
| Format the file (and on save) | the same server, using `rex fmt` |
|
||||
| Outline, go to definition, hover, completion, parameter hints | the same server (reads the file's names; no type checking) |
|
||||
|
||||
First put the `dino` program on your `PATH`:
|
||||
First put the `rex` program on your `PATH`:
|
||||
|
||||
```text
|
||||
cargo build --release
|
||||
cp target/release/dino ~/.local/bin/ # or anywhere on your PATH
|
||||
cp target/release/rex ~/.local/bin/ # or anywhere on your PATH
|
||||
```
|
||||
|
||||
## VS Code
|
||||
@@ -24,14 +24,14 @@ The extension is in `editors/vscode/`.
|
||||
```text
|
||||
cd editors/vscode
|
||||
npm install # downloads the small language-client library
|
||||
npx @vscode/vsce package # makes dino-0.1.0.vsix
|
||||
code --install-extension dino-0.1.0.vsix
|
||||
npx @vscode/vsce package # makes rex-0.1.0.vsix
|
||||
code --install-extension rex-0.1.0.vsix
|
||||
```
|
||||
|
||||
To try it without installing, open the `editors/vscode` folder in VS Code and press **F5**.
|
||||
|
||||
If `dino` is not on your `PATH`, set **Dino: Server Path** in the settings to the full path.
|
||||
Format-on-save and 4-space indents are switched on for `.dino` files by default.
|
||||
If `rex` is not on your `PATH`, set **Rex: Server Path** in the settings to the full path.
|
||||
Format-on-save and 4-space indents are switched on for `.rex` files by default.
|
||||
|
||||
## Neovim
|
||||
|
||||
@@ -40,19 +40,19 @@ Put the `vim/` folder on your runtime path to get file detection and colours, fo
|
||||
|
||||
```text
|
||||
mkdir -p ~/.config/nvim/syntax ~/.config/nvim/ftdetect
|
||||
cp vim/syntax/dino.vim ~/.config/nvim/syntax/
|
||||
cp vim/ftdetect/dino.vim ~/.config/nvim/ftdetect/
|
||||
cp vim/syntax/rex.vim ~/.config/nvim/syntax/
|
||||
cp vim/ftdetect/rex.vim ~/.config/nvim/ftdetect/
|
||||
```
|
||||
|
||||
Then in `init.lua` (Neovim 0.8 or newer):
|
||||
|
||||
```lua
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "dino",
|
||||
pattern = "rex",
|
||||
callback = function(args)
|
||||
vim.lsp.start({
|
||||
name = "dino",
|
||||
cmd = { "dino", "lsp" },
|
||||
name = "rex",
|
||||
cmd = { "rex", "lsp" },
|
||||
root_dir = vim.fs.dirname(args.file),
|
||||
})
|
||||
vim.bo.shiftwidth = 4
|
||||
@@ -61,7 +61,7 @@ vim.api.nvim_create_autocmd("FileType", {
|
||||
})
|
||||
-- format when saving
|
||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||
pattern = "*.dino",
|
||||
pattern = "*.rex",
|
||||
callback = function() vim.lsp.buf.format({ async = false }) end,
|
||||
})
|
||||
```
|
||||
@@ -73,26 +73,26 @@ Plain Vim gets the colours from the same two files (no language server).
|
||||
Add this to `~/.config/helix/languages.toml`:
|
||||
|
||||
```toml
|
||||
[language-server.dino]
|
||||
command = "dino"
|
||||
[language-server.rex]
|
||||
command = "rex"
|
||||
args = ["lsp"]
|
||||
|
||||
[[language]]
|
||||
name = "dino"
|
||||
scope = "source.dino"
|
||||
file-types = ["dino"]
|
||||
name = "rex"
|
||||
scope = "source.rex"
|
||||
file-types = ["rex"]
|
||||
comment-token = "//"
|
||||
indent = { tab-width = 4, unit = " " }
|
||||
language-servers = ["dino"]
|
||||
language-servers = ["rex"]
|
||||
auto-format = true
|
||||
```
|
||||
|
||||
## Any other editor
|
||||
|
||||
Anything that can run a language server works: start `dino lsp` (it speaks the standard
|
||||
protocol over stdin/stdout) for files ending in `.dino`. It supports diagnostics and
|
||||
Anything that can run a language server works: start `rex lsp` (it speaks the standard
|
||||
protocol over stdin/stdout) for files ending in `.rex`. It supports diagnostics and
|
||||
whole-file formatting. The grammar for colours is the TextMate file
|
||||
`vscode/syntaxes/dino.tmLanguage.json`, which Sublime Text, Zed and many others can read.
|
||||
`vscode/syntaxes/rex.tmLanguage.json`, which Sublime Text, Zed and many others can read.
|
||||
|
||||
## What the server does (and doesn't) do yet
|
||||
|
||||
@@ -105,7 +105,7 @@ whole-file formatting. The grammar for colours is the TextMate file
|
||||
|
||||
## Opcode
|
||||
|
||||
Opcode (the C++ editor in `~/Desktop/Porn/Linux/Clean/opcode`) knows Dino out of the box: colours,
|
||||
`//` comments, snippets, the outline, format with `dino fmt -`, and the language server
|
||||
(`dino lsp`) for errors, go to definition, hover, completion and parameter hints. It only needs
|
||||
`dino` on your `PATH` (see the top of this page).
|
||||
Opcode (the C++ editor in `~/Desktop/Porn/Linux/Clean/opcode`) knows Rex out of the box: colours,
|
||||
`//` comments, snippets, the outline, format with `rex fmt -`, and the language server
|
||||
(`rex lsp`) for errors, go to definition, hover, completion and parameter hints. It only needs
|
||||
`rex` on your `PATH` (see the top of this page).
|
||||
@@ -1 +0,0 @@
|
||||
autocmd BufRead,BufNewFile *.dino setfiletype dino
|
||||
@@ -0,0 +1 @@
|
||||
autocmd BufRead,BufNewFile *.rex setfiletype rex
|
||||
@@ -1,37 +0,0 @@
|
||||
" Vim / Neovim syntax highlighting for Dino
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
syn keyword dinoControl if else for in step match return break continue
|
||||
syn keyword dinoDeclare func var const import struct enum interface pub
|
||||
syn keyword dinoModifier shared weak
|
||||
syn keyword dinoConstant true false nil
|
||||
syn keyword dinoType int float bool char string error map i8 i16 i32 i64 u8 u16 u32 u64 f32 f64
|
||||
syn match dinoTypeName "\<[A-Z][A-Za-z0-9_]*\>"
|
||||
syn match dinoNumber "\<[0-9][0-9_]*\(\.[0-9][0-9_]*\)\?\>"
|
||||
syn match dinoCall "\<[a-z_][A-Za-z0-9_]*\ze\s*("
|
||||
syn match dinoOperator "=>\|\.\.\|==\|!=\|<=\|>=\|&&\|||\|[-+*/%]=\?\|[<>!?=]"
|
||||
syn match dinoEscape "\\." contained
|
||||
syn region dinoInterp matchgroup=dinoInterpEdge start="{" end="}" contained contains=TOP
|
||||
syn region dinoString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=dinoEscape,dinoInterp
|
||||
syn match dinoChar "'\(\\.\|[^'\\]\)'"
|
||||
syn region dinoComment start="/\*" end="\*/"
|
||||
syn match dinoComment "//.*$"
|
||||
|
||||
hi def link dinoControl Conditional
|
||||
hi def link dinoDeclare Keyword
|
||||
hi def link dinoModifier StorageClass
|
||||
hi def link dinoConstant Constant
|
||||
hi def link dinoType Type
|
||||
hi def link dinoTypeName Type
|
||||
hi def link dinoNumber Number
|
||||
hi def link dinoCall Function
|
||||
hi def link dinoOperator Operator
|
||||
hi def link dinoEscape SpecialChar
|
||||
hi def link dinoInterpEdge Delimiter
|
||||
hi def link dinoString String
|
||||
hi def link dinoChar Character
|
||||
hi def link dinoComment Comment
|
||||
|
||||
let b:current_syntax = "dino"
|
||||
@@ -0,0 +1,37 @@
|
||||
" Vim / Neovim syntax highlighting for Rex
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
syn keyword rexControl if else for in step match return break continue
|
||||
syn keyword rexDeclare func var const import struct enum interface pub
|
||||
syn keyword rexModifier shared weak
|
||||
syn keyword rexConstant true false nil
|
||||
syn keyword rexType int float bool char string error map i8 i16 i32 i64 u8 u16 u32 u64 f32 f64
|
||||
syn match rexTypeName "\<[A-Z][A-Za-z0-9_]*\>"
|
||||
syn match rexNumber "\<[0-9][0-9_]*\(\.[0-9][0-9_]*\)\?\>"
|
||||
syn match rexCall "\<[a-z_][A-Za-z0-9_]*\ze\s*("
|
||||
syn match rexOperator "=>\|\.\.\|==\|!=\|<=\|>=\|&&\|||\|[-+*/%]=\?\|[<>!?=]"
|
||||
syn match rexEscape "\\." contained
|
||||
syn region rexInterp matchgroup=rexInterpEdge start="{" end="}" contained contains=TOP
|
||||
syn region rexString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=rexEscape,rexInterp
|
||||
syn match rexChar "'\(\\.\|[^'\\]\)'"
|
||||
syn region rexComment start="/\*" end="\*/"
|
||||
syn match rexComment "//.*$"
|
||||
|
||||
hi def link rexControl Conditional
|
||||
hi def link rexDeclare Keyword
|
||||
hi def link rexModifier StorageClass
|
||||
hi def link rexConstant Constant
|
||||
hi def link rexType Type
|
||||
hi def link rexTypeName Type
|
||||
hi def link rexNumber Number
|
||||
hi def link rexCall Function
|
||||
hi def link rexOperator Operator
|
||||
hi def link rexEscape SpecialChar
|
||||
hi def link rexInterpEdge Delimiter
|
||||
hi def link rexString String
|
||||
hi def link rexChar Character
|
||||
hi def link rexComment Comment
|
||||
|
||||
let b:current_syntax = "rex"
|
||||
@@ -1,20 +1,20 @@
|
||||
// Starts `dino lsp` and connects the editor to it. All the work is done by the compiler.
|
||||
// Starts `rex lsp` and connects the editor to it. All the work is done by the compiler.
|
||||
const vscode = require('vscode');
|
||||
const { LanguageClient } = require('vscode-languageclient/node');
|
||||
|
||||
let client;
|
||||
|
||||
function activate() {
|
||||
const command = vscode.workspace.getConfiguration('dino').get('serverPath') || 'dino';
|
||||
const command = vscode.workspace.getConfiguration('rex').get('serverPath') || 'rex';
|
||||
client = new LanguageClient(
|
||||
'dino',
|
||||
'Dino Language Server',
|
||||
'rex',
|
||||
'Rex Language Server',
|
||||
{ command, args: ['lsp'] },
|
||||
{ documentSelector: [{ scheme: 'file', language: 'dino' }] }
|
||||
{ documentSelector: [{ scheme: 'file', language: 'rex' }] }
|
||||
);
|
||||
client.start().catch((err) => {
|
||||
vscode.window.showErrorMessage(
|
||||
`Could not start "${command} lsp": ${err.message}. Put the dino program on your PATH or set "dino.serverPath".`
|
||||
`Could not start "${command} lsp": ${err.message}. Put the rex program on your PATH or set "rex.serverPath".`
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
+16
-16
@@ -1,43 +1,43 @@
|
||||
{
|
||||
"name": "dino",
|
||||
"displayName": "Dino",
|
||||
"description": "Syntax highlighting, error checking and formatting for the Dino language",
|
||||
"name": "rex",
|
||||
"displayName": "Rex",
|
||||
"description": "Syntax highlighting, error checking and formatting for the Rex language",
|
||||
"version": "0.1.0",
|
||||
"publisher": "dino-lang",
|
||||
"publisher": "rex-lang",
|
||||
"license": "MIT",
|
||||
"engines": { "vscode": "^1.75.0" },
|
||||
"categories": ["Programming Languages", "Formatters"],
|
||||
"activationEvents": ["onLanguage:dino"],
|
||||
"activationEvents": ["onLanguage:rex"],
|
||||
"main": "./extension.js",
|
||||
"dependencies": { "vscode-languageclient": "^9.0.1" },
|
||||
"contributes": {
|
||||
"languages": [
|
||||
{
|
||||
"id": "dino",
|
||||
"aliases": ["Dino", "dino"],
|
||||
"extensions": [".dino"],
|
||||
"id": "rex",
|
||||
"aliases": ["Rex", "rex"],
|
||||
"extensions": [".rex"],
|
||||
"configuration": "./language-configuration.json"
|
||||
}
|
||||
],
|
||||
"grammars": [
|
||||
{
|
||||
"language": "dino",
|
||||
"scopeName": "source.dino",
|
||||
"path": "./syntaxes/dino.tmLanguage.json"
|
||||
"language": "rex",
|
||||
"scopeName": "source.rex",
|
||||
"path": "./syntaxes/rex.tmLanguage.json"
|
||||
}
|
||||
],
|
||||
"configuration": {
|
||||
"title": "Dino",
|
||||
"title": "Rex",
|
||||
"properties": {
|
||||
"dino.serverPath": {
|
||||
"rex.serverPath": {
|
||||
"type": "string",
|
||||
"default": "dino",
|
||||
"description": "The `dino` program that provides the language server (it is started as `dino lsp`)."
|
||||
"default": "rex",
|
||||
"description": "The `rex` program that provides the language server (it is started as `rex lsp`)."
|
||||
}
|
||||
}
|
||||
},
|
||||
"configurationDefaults": {
|
||||
"[dino]": {
|
||||
"[rex]": {
|
||||
"editor.insertSpaces": true,
|
||||
"editor.tabSize": 4,
|
||||
"editor.formatOnSave": true
|
||||
|
||||
@@ -1,103 +0,0 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
||||
"name": "Dino",
|
||||
"scopeName": "source.dino",
|
||||
"patterns": [
|
||||
{ "include": "#comments" },
|
||||
{ "include": "#strings" },
|
||||
{ "include": "#chars" },
|
||||
{ "include": "#declarations" },
|
||||
{ "include": "#keywords" },
|
||||
{ "include": "#constants" },
|
||||
{ "include": "#numbers" },
|
||||
{ "include": "#types" },
|
||||
{ "include": "#calls" },
|
||||
{ "include": "#operators" }
|
||||
],
|
||||
"repository": {
|
||||
"comments": {
|
||||
"patterns": [
|
||||
{ "name": "comment.line.double-slash.dino", "match": "//.*$" },
|
||||
{ "name": "comment.block.dino", "begin": "/\\*", "end": "\\*/" }
|
||||
]
|
||||
},
|
||||
"strings": {
|
||||
"name": "string.quoted.double.dino",
|
||||
"begin": "\"",
|
||||
"end": "\"",
|
||||
"patterns": [
|
||||
{ "name": "constant.character.escape.dino", "match": "\\\\." },
|
||||
{
|
||||
"name": "meta.interpolation.dino",
|
||||
"begin": "\\{",
|
||||
"end": "\\}",
|
||||
"beginCaptures": { "0": { "name": "punctuation.section.interpolation.begin.dino" } },
|
||||
"endCaptures": { "0": { "name": "punctuation.section.interpolation.end.dino" } },
|
||||
"patterns": [{ "include": "$self" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
"chars": {
|
||||
"name": "string.quoted.single.dino",
|
||||
"match": "'(?:\\\\.|[^'\\\\])'",
|
||||
"captures": {}
|
||||
},
|
||||
"declarations": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(func)\\s+([A-Za-z_][A-Za-z0-9_]*)",
|
||||
"captures": {
|
||||
"1": { "name": "keyword.declaration.function.dino" },
|
||||
"2": { "name": "entity.name.function.dino" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "\\b(struct|enum|interface)\\s+([A-Za-z_][A-Za-z0-9_]*)",
|
||||
"captures": {
|
||||
"1": { "name": "keyword.declaration.type.dino" },
|
||||
"2": { "name": "entity.name.type.dino" }
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"keywords": {
|
||||
"patterns": [
|
||||
{ "name": "keyword.control.dino", "match": "\\b(if|else|for|in|step|match|return|break|continue)\\b" },
|
||||
{ "name": "keyword.declaration.dino", "match": "\\b(func|var|const|import|struct|enum|interface|pub)\\b" },
|
||||
{ "name": "storage.modifier.dino", "match": "\\b(shared|weak)\\b" }
|
||||
]
|
||||
},
|
||||
"constants": {
|
||||
"name": "constant.language.dino",
|
||||
"match": "\\b(true|false|nil)\\b"
|
||||
},
|
||||
"numbers": {
|
||||
"name": "constant.numeric.dino",
|
||||
"match": "\\b[0-9][0-9_]*(?:\\.[0-9][0-9_]*)?\\b"
|
||||
},
|
||||
"types": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "support.type.builtin.dino",
|
||||
"match": "\\b(int|float|bool|char|string|error|map|i8|i16|i32|i64|u8|u16|u32|u64|f32|f64)\\b"
|
||||
},
|
||||
{ "name": "entity.name.type.dino", "match": "\\b[A-Z][A-Za-z0-9_]*\\b" }
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"name": "entity.name.function.call.dino",
|
||||
"match": "\\b[a-z_][A-Za-z0-9_]*(?=\\s*\\()"
|
||||
},
|
||||
"operators": {
|
||||
"patterns": [
|
||||
{ "name": "keyword.operator.arrow.dino", "match": "=>" },
|
||||
{ "name": "keyword.operator.range.dino", "match": "\\.\\." },
|
||||
{ "name": "keyword.operator.comparison.dino", "match": "==|!=|<=|>=|<|>" },
|
||||
{ "name": "keyword.operator.logical.dino", "match": "&&|\\|\\||!" },
|
||||
{ "name": "keyword.operator.assignment.dino", "match": "[-+*/%]?=" },
|
||||
{ "name": "keyword.operator.arithmetic.dino", "match": "[-+*/%]" },
|
||||
{ "name": "keyword.operator.optional.dino", "match": "\\?" }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
||||
"name": "Rex",
|
||||
"scopeName": "source.rex",
|
||||
"patterns": [
|
||||
{ "include": "#comments" },
|
||||
{ "include": "#strings" },
|
||||
{ "include": "#chars" },
|
||||
{ "include": "#declarations" },
|
||||
{ "include": "#keywords" },
|
||||
{ "include": "#constants" },
|
||||
{ "include": "#numbers" },
|
||||
{ "include": "#types" },
|
||||
{ "include": "#calls" },
|
||||
{ "include": "#operators" }
|
||||
],
|
||||
"repository": {
|
||||
"comments": {
|
||||
"patterns": [
|
||||
{ "name": "comment.line.double-slash.rex", "match": "//.*$" },
|
||||
{ "name": "comment.block.rex", "begin": "/\\*", "end": "\\*/" }
|
||||
]
|
||||
},
|
||||
"strings": {
|
||||
"name": "string.quoted.double.rex",
|
||||
"begin": "\"",
|
||||
"end": "\"",
|
||||
"patterns": [
|
||||
{ "name": "constant.character.escape.rex", "match": "\\\\." },
|
||||
{
|
||||
"name": "meta.interpolation.rex",
|
||||
"begin": "\\{",
|
||||
"end": "\\}",
|
||||
"beginCaptures": { "0": { "name": "punctuation.section.interpolation.begin.rex" } },
|
||||
"endCaptures": { "0": { "name": "punctuation.section.interpolation.end.rex" } },
|
||||
"patterns": [{ "include": "$self" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
"chars": {
|
||||
"name": "string.quoted.single.rex",
|
||||
"match": "'(?:\\\\.|[^'\\\\])'",
|
||||
"captures": {}
|
||||
},
|
||||
"declarations": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(func)\\s+([A-Za-z_][A-Za-z0-9_]*)",
|
||||
"captures": {
|
||||
"1": { "name": "keyword.declaration.function.rex" },
|
||||
"2": { "name": "entity.name.function.rex" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "\\b(struct|enum|interface)\\s+([A-Za-z_][A-Za-z0-9_]*)",
|
||||
"captures": {
|
||||
"1": { "name": "keyword.declaration.type.rex" },
|
||||
"2": { "name": "entity.name.type.rex" }
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"keywords": {
|
||||
"patterns": [
|
||||
{ "name": "keyword.control.rex", "match": "\\b(if|else|for|in|step|match|return|break|continue)\\b" },
|
||||
{ "name": "keyword.declaration.rex", "match": "\\b(func|var|const|import|struct|enum|interface|pub)\\b" },
|
||||
{ "name": "storage.modifier.rex", "match": "\\b(shared|weak)\\b" }
|
||||
]
|
||||
},
|
||||
"constants": {
|
||||
"name": "constant.language.rex",
|
||||
"match": "\\b(true|false|nil)\\b"
|
||||
},
|
||||
"numbers": {
|
||||
"name": "constant.numeric.rex",
|
||||
"match": "\\b[0-9][0-9_]*(?:\\.[0-9][0-9_]*)?\\b"
|
||||
},
|
||||
"types": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "support.type.builtin.rex",
|
||||
"match": "\\b(int|float|bool|char|string|error|map|i8|i16|i32|i64|u8|u16|u32|u64|f32|f64)\\b"
|
||||
},
|
||||
{ "name": "entity.name.type.rex", "match": "\\b[A-Z][A-Za-z0-9_]*\\b" }
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"name": "entity.name.function.call.rex",
|
||||
"match": "\\b[a-z_][A-Za-z0-9_]*(?=\\s*\\()"
|
||||
},
|
||||
"operators": {
|
||||
"patterns": [
|
||||
{ "name": "keyword.operator.arrow.rex", "match": "=>" },
|
||||
{ "name": "keyword.operator.range.rex", "match": "\\.\\." },
|
||||
{ "name": "keyword.operator.comparison.rex", "match": "==|!=|<=|>=|<|>" },
|
||||
{ "name": "keyword.operator.logical.rex", "match": "&&|\\|\\||!" },
|
||||
{ "name": "keyword.operator.assignment.rex", "match": "[-+*/%]?=" },
|
||||
{ "name": "keyword.operator.arithmetic.rex", "match": "[-+*/%]" },
|
||||
{ "name": "keyword.operator.optional.rex", "match": "\\?" }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user