-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
71 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
autocmd BufNewFile,BufRead *.alien set filetype=alienscript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
if exists("b:did_alienscript_ftplugin") | ||
finish | ||
endif | ||
|
||
|
||
setlocal iskeyword+=-,>,?,=,!,<,>,+,*,/,%,&,| | ||
|
||
let b:did_alienscript_ftplugin = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
if exists("b:current_syntax") | ||
finish | ||
endif | ||
|
||
syntax keyword alienscriptDefFunction defn | ||
|
||
syntax keyword alienscriptDefMacro defmacro | ||
|
||
syntax keyword alienscriptKeyword fn | ||
" syntax keyword alienscriptKeyword do -> new object str var | ||
" syntax keyword alienscriptKeyword array arrayInit arrayInit2d | ||
" syntax keyword alienscriptTesting assert testGroup testRunner | ||
" syntax keyword alienscriptTemplating template template-repeat template-repeat-key | ||
|
||
" syntax keyword alienscriptOperator undefined? null? true? false? zero? boolean? | ||
" syntax keyword alienscriptOperator number? string? object? array? function? | ||
" syntax keyword alienscriptOperator = ! != > < <= >= + - * / % && | ||
" syntax match alienscriptOperator "\v([ \t()]|^)\zs\|\|\ze([ \t()]|$)" | ||
|
||
syntax keyword alienscriptConstant null undefined | ||
|
||
syntax keyword alienscriptBoolean true false | ||
|
||
" syntax keyword alienscriptRepeat loop each each2d eachKey reduce map for | ||
|
||
syntax keyword alienscriptConditional if | ||
|
||
" syntax keyword alienscriptException try catch throw | ||
|
||
" syntax keyword alienscriptImport include | ||
|
||
syntax match alienscriptComment "\v;.*$" | ||
|
||
syntax match alienscriptNumber "\v<-?\d+(\.\d+)?>" | ||
|
||
syntax region alienscriptString start=+"+ skip=+\\\\\|\\"+ end=+"\|$+ | ||
|
||
" Custom words go here... | ||
" syntax keyword alienscriptKeyword defn | ||
" syntax keyword alienscriptKeyword onload | ||
|
||
highlight link alienscriptKeyword Keyword | ||
" highlight link alienscriptTesting Keyword | ||
" highlight link alienscriptTemplating Keyword | ||
highlight link alienscriptDefFunction Keyword | ||
highlight link alienscriptDefMacro Keyword | ||
" highlight link alienscriptOperator Operator | ||
highlight link alienscriptConditional Conditional | ||
" highlight link alienscriptException Exception | ||
" highlight link alienscriptImport Include | ||
highlight link alienscriptBoolean Boolean | ||
" highlight link alienscriptRepeat Repeat | ||
highlight link alienscriptNumber Number | ||
highlight link alienscriptComment Comment | ||
highlight link alienscriptString String | ||
highlight link alienscriptConstant Constant | ||
|
||
let b:current_syntax = "alienscript" | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.