Primeiro commit
This commit is contained in:
19
highlighting/geany-reddust/filetypes.reddust.conf
Normal file
19
highlighting/geany-reddust/filetypes.reddust.conf
Normal file
@@ -0,0 +1,19 @@
|
||||
[styling]
|
||||
default=0x000000;#FFFFFF;false;false
|
||||
keyword=0x0000FF;#FFFFFF;true;false
|
||||
comment=0x008000;#FFFFFF;false;true
|
||||
number=0xFF0000;#FFFFFF;false;false
|
||||
|
||||
[keywords]
|
||||
# Palavras-chave são dígitos hex (0-9 e A-F), conforme seu tema VSCode,
|
||||
# mas Geany keywords são palavras fixas, então colocaremos os dígitos
|
||||
|
||||
keywords=0 1 2 3 4 5 6 7 8 9 A B C D E F
|
||||
|
||||
[settings]
|
||||
# Configurações para comentários
|
||||
comment_single=//
|
||||
|
||||
[options]
|
||||
# Case insensitive keywords? Para Hex, deixamos case sensitive (false)
|
||||
case_sensitive=true
|
||||
16
highlighting/vim-reddust/reddust.vim
Normal file
16
highlighting/vim-reddust/reddust.vim
Normal file
@@ -0,0 +1,16 @@
|
||||
" Syntax file for RedDust
|
||||
" Maintainer: Syntax Echonomics
|
||||
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
syntax match reddustKeyword /^\s*[0-9A-F]\ze;/
|
||||
syntax match reddustNumber /\v\<[0-9A-F]\>/
|
||||
syntax match reddustComment "//.*$"
|
||||
|
||||
highlight def link reddustKeyword Keyword
|
||||
highlight def link reddustNumber Number
|
||||
highlight def link reddustComment Comment
|
||||
|
||||
let b:current_syntax = "reddust"
|
||||
BIN
highlighting/vscode-reddust/icon.png
Normal file
BIN
highlighting/vscode-reddust/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
5
highlighting/vscode-reddust/language-configuration.json
Normal file
5
highlighting/vscode-reddust/language-configuration.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"comments": {
|
||||
"lineComment": "//"
|
||||
}
|
||||
}
|
||||
28
highlighting/vscode-reddust/package.json
Normal file
28
highlighting/vscode-reddust/package.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"name": "reddust",
|
||||
"displayName": "RedDust Language",
|
||||
"description": "Syntax highlighting for RedDust (.redd)",
|
||||
"version": "1.0.0",
|
||||
"publisher": "Syntax Echonomics",
|
||||
"engines": {
|
||||
"vscode": "^1.50.0"
|
||||
},
|
||||
"icon": "icon.png",
|
||||
"contributes": {
|
||||
"languages": [
|
||||
{
|
||||
"id": "reddust",
|
||||
"aliases": ["RedDust", "reddust"],
|
||||
"extensions": [".redd"],
|
||||
"configuration": "./language-configuration.json"
|
||||
}
|
||||
],
|
||||
"grammars": [
|
||||
{
|
||||
"language": "reddust",
|
||||
"scopeName": "source.reddust",
|
||||
"path": "./reddust.tmLanguage.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
BIN
highlighting/vscode-reddust/reddust-1.0.0.vsix
Normal file
BIN
highlighting/vscode-reddust/reddust-1.0.0.vsix
Normal file
Binary file not shown.
19
highlighting/vscode-reddust/reddust.tmLanguage.json
Normal file
19
highlighting/vscode-reddust/reddust.tmLanguage.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"scopeName": "source.reddust",
|
||||
"patterns": [
|
||||
|
||||
{
|
||||
"name": "keyword.control.reddust",
|
||||
"match": "^(\\s*[0-9A-F])(?=;)"
|
||||
},
|
||||
|
||||
{
|
||||
"name": "constant.numeric.reddust",
|
||||
"match": "\\b[0-9A-F]\\b"
|
||||
},
|
||||
{
|
||||
"name": "comment.line.double-slash.reddust",
|
||||
"match": "//.*$"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user