robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqvim-patch:9.2.0551: filetype: Tolk files are not recognizeddf1f8a60cf

master
1017 B37 linesraw
1" Vim syntax file
2" Language:     Tolk
3" Maintainer:   redavy <hello.redavy@proton.me>
4" Upstream:     https://github.com/redavy/vim-tolk
5" Last Update:  28 May 2026
6
7if exists("b:current_syntax")
8  finish
9endif
10
11" Keywords
12syn keyword tolkKeyword  do if as fun asm get try var val lazy
13syn keyword tolkKeyword  else enum true tolk const false throw
14syn keyword tolkKeyword  redef while catch return assert import
15syn keyword tolkKeyword  global repeat contract mutate struct
16syn keyword tolkKeyword  match type null void never
17
18" Strings
19syn region tolkString  start=+"+ end=+"+
20syn region tolkString  start=+'+ end=+'+
21
22" Numbers
23syn match tolkNumber  "\<[0-9]\+\>"
24syn match tolkNumber  "\<0[xX][0-9a-fA-F]\+\>"
25syn match tolkNumber  "\<[0-9]\+\.[0-9]\+\>"
26
27" Comments
28syn match  tolkComment  "//.*$"
29syn region tolkComment  start="/\*" end="\*/"
30
31" Highlights
32hi link tolkKeyword    Keyword
33hi link tolkString     String
34hi link tolkNumber     Number
35hi link tolkComment    Comment
36
37let b:current_syntax = "tolk"