Ver código fonte

Initial commit

master
Dylan Baker 4 anos atrás
commit
82be7db228
2 arquivos alterados com 42 adições e 0 exclusões
  1. 1
    0
      ftdetect/ahem.vim
  2. 41
    0
      syntax/ahem.vim

+ 1
- 0
ftdetect/ahem.vim Ver arquivo

@@ -0,0 +1 @@
1
+au BufRead,BufNewFile *.ahem set filetype=ahem

+ 41
- 0
syntax/ahem.vim Ver arquivo

@@ -0,0 +1,41 @@
1
+if exists("b:current_syn")
2
+  finish
3
+endif
4
+
5
+let b:current_syn = "ahem"
6
+
7
+syn keyword ahemBoolean true false
8
+syn keyword ahemConditional if elseif else
9
+syn keyword ahemFunction function method classmethod
10
+syn keyword ahemKeyword class let for in
11
+syn keyword ahemNull null
12
+syn keyword ahemOperator and or not
13
+syn keyword ahemStorageClass public private
14
+syn match ahemAtom "\v\:[a-z][a-zA-Z0-9\_]*"
15
+syn match ahemClass "\v[A-Z][a-zA-Z0-9\_]*"
16
+syn match ahemNumber "\v\d+(\.\d+)?"
17
+syn match ahemOperator "\v\*"
18
+syn match ahemOperator "\v\+"
19
+syn match ahemOperator "\v\-"
20
+syn match ahemOperator "\v\/"
21
+syn match ahemOperator "\v\<"
22
+syn match ahemOperator "\v\<\="
23
+syn match ahemOperator "\v\=\="
24
+syn match ahemOperator "\v\=\>"
25
+syn match ahemOperator "\v\>"
26
+syn match ahemOperator "\v\>\="
27
+syn match ahemComment "\v\/\/.*"
28
+syn region ahemString start=/\v"/ skip=/\v\\./ end=/\v"/
29
+
30
+hi link ahemAtom Label
31
+hi link ahemBoolean Boolean
32
+hi link ahemClass Label
33
+hi link ahemComment Comment
34
+hi link ahemConditional Conditional
35
+hi link ahemFunction Function
36
+hi link ahemKeyword Keyword
37
+hi link ahemNull Special
38
+hi link ahemNumber Number
39
+hi link ahemOperator Operator
40
+hi link ahemString String
41
+hi link ahemStorageClass StorageClass

Carregando…
Cancelar
Salvar