vim: update ril.vim for new IL instructions
3700844079e4a7501ba65c3c0e725bd66c246b123882d0313b3c2c17cd22420c
Add elem, ptr (MakePtr), w64 and ptr types to syntax highlighting.
1 parent
07d2c0e8
vim/ril.vim
+4 -2
| 14 | 14 | ||
| 15 | 15 | " Keywords |
|
| 16 | 16 | syntax keyword rilKeyword fn data extern mut align |
|
| 17 | 17 | ||
| 18 | 18 | " Instructions (memory) |
|
| 19 | - | syntax keyword rilInstr reserve load sload store blit copy |
|
| 19 | + | syntax keyword rilInstr reserve load sload store blit copy elem |
|
| 20 | 20 | " Instructions (arithmetic) |
|
| 21 | 21 | syntax keyword rilInstr add sub mul sdiv udiv srem urem neg |
|
| 22 | 22 | " Instructions (comparison) |
|
| 23 | 23 | syntax keyword rilInstr eq ne slt sge ult uge |
|
| 24 | 24 | " Instructions (bitwise) |
|
| 25 | 25 | syntax keyword rilInstr and or xor shl sshr ushr not |
|
| 26 | 26 | " Instructions (conversions) |
|
| 27 | 27 | syntax keyword rilInstr zext sext |
|
| 28 | + | " Instructions (pointer) |
|
| 29 | + | syntax keyword rilInstr ptr |
|
| 28 | 30 | " Instructions (calls and terminators) |
|
| 29 | 31 | syntax keyword rilInstr call ret jmp switch unreachable |
|
| 30 | 32 | " Instructions (intrinsics) |
|
| 31 | 33 | syntax keyword rilInstr ecall ebreak |
|
| 32 | 34 |
| 35 | 37 | ||
| 36 | 38 | " Data items |
|
| 37 | 39 | syntax keyword rilDataItem str sym undef |
|
| 38 | 40 | ||
| 39 | 41 | " Types |
|
| 40 | - | syntax keyword rilType w8 w16 w32 void |
|
| 42 | + | syntax keyword rilType w8 w16 w32 w64 ptr void |
|
| 41 | 43 | ||
| 42 | 44 | " Block labels (@identifier0, @eq#foobar1) |
|
| 43 | 45 | syntax match rilLabel "@[A-Za-z_][A-Za-z0-9_#]*" |
|
| 44 | 46 | ||
| 45 | 47 | " Symbol names ($name or $"qualified::name") |