Test syntax highlighting
This commit is contained in:
parent
233703bc91
commit
b8d953c43c
1 changed files with 24 additions and 0 deletions
24
other/tests/vim/syntax.vader
Normal file
24
other/tests/vim/syntax.vader
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
Given nim:
|
||||
import
|
||||
sequtils,
|
||||
streams
|
||||
|
||||
type Obj = object
|
||||
x, y: int
|
||||
|
||||
proc nope =
|
||||
echo "foobar"
|
||||
echo "x" == "y"
|
||||
nope()
|
||||
|
||||
|
||||
Execute:
|
||||
AssertEqual SyntaxAt(1, 1), "nimInclude"
|
||||
AssertEqual SyntaxAt(5, 12), "nimStorage"
|
||||
AssertEqual SyntaxAt(5, 1), "nimStorageClass"
|
||||
AssertEqual SyntaxAt(6, 9), "nimBuiltinType"
|
||||
AssertEqual SyntaxAt(8, 1), "nimTypedef"
|
||||
AssertEqual SyntaxAt(9, 3), "nimBuiltinFunction"
|
||||
AssertEqual SyntaxAt(9, 8), "nimString"
|
||||
AssertEqual SyntaxAt(10, 13), "nimOP5"
|
||||
AssertEqual SyntaxAt(11, 1), "nimIdentifier"
|
||||
Loading…
Add table
Add a link
Reference in a new issue