Mercurial > vim
comparison runtime/syntax/mmix.vim @ 3557:9cb3a75a20b9
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 01 Jun 2012 22:38:45 +0200 |
parents | 3fc0f57ecb91 |
children | 43efa4f5a8ea |
comparison
equal
deleted
inserted
replaced
3556:1110869e267a | 3557:9cb3a75a20b9 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: MMIX | 2 " Language: MMIX |
3 " Maintainer: Dirk Hüsken, <huesken@informatik.uni-tuebingen.de> | 3 " Maintainer: Dirk Hüsken, <huesken@informatik.uni-tuebingen.de> |
4 " Last Change: Wed Apr 24 01:18:52 CEST 2002 | 4 " Last Change: 2012 Jun 01 |
5 " (Dominique Pelle added @Spell) | |
5 " Filenames: *.mms | 6 " Filenames: *.mms |
6 " URL: http://homepages.uni-tuebingen.de/student/dirk.huesken/vim/syntax/mmix.vim | 7 " URL: http://homepages.uni-tuebingen.de/student/dirk.huesken/vim/syntax/mmix.vim |
7 | 8 |
8 " Limitations: Comments must start with either % or // | 9 " Limitations: Comments must start with either % or // |
9 " (preferrably %, Knuth-Style) | 10 " (preferably %, Knuth-Style) |
10 | 11 |
11 if version < 600 | 12 if version < 600 |
12 syntax clear | 13 syntax clear |
13 elseif exists("b:current_syntax") | 14 elseif exists("b:current_syntax") |
14 finish | 15 finish |
21 | 22 |
22 " different literals... | 23 " different literals... |
23 syn match decNumber "[0-9]*" | 24 syn match decNumber "[0-9]*" |
24 syn match octNumber "0[0-7][0-7]\+" | 25 syn match octNumber "0[0-7][0-7]\+" |
25 syn match hexNumber "#[0-9a-fA-F]\+" | 26 syn match hexNumber "#[0-9a-fA-F]\+" |
26 syn region mmixString start=+"+ skip=+\\"+ end=+"+ | 27 syn region mmixString start=+"+ skip=+\\"+ end=+"+ contains=@Spell |
27 syn match mmixChar "'.'" | 28 syn match mmixChar "'.'" |
28 | 29 |
29 " ...and more special MMIX stuff | 30 " ...and more special MMIX stuff |
30 syn match mmixAt "@" | 31 syn match mmixAt "@" |
31 syn keyword mmixSegments Data_Segment Pool_Segment Stack_Segment | 32 syn keyword mmixSegments Data_Segment Pool_Segment Stack_Segment |
38 | 39 |
39 " pseudo-operations | 40 " pseudo-operations |
40 syn keyword mmixPseudo is loc greg | 41 syn keyword mmixPseudo is loc greg |
41 | 42 |
42 " comments | 43 " comments |
43 syn match mmixComment "%.*" | 44 syn match mmixComment "%.*" contains=@Spell |
44 syn match mmixComment "//.*" | 45 syn match mmixComment "//.*" contains=@Spell |
45 syn match mmixComment "^\*.*" | 46 syn match mmixComment "^\*.*" contains=@Spell |
46 | 47 |
47 | 48 |
48 syn keyword mmixOpcode trap fcmp fun feql fadd fix fsub fixu | 49 syn keyword mmixOpcode trap fcmp fun feql fadd fix fsub fixu |
49 syn keyword mmixOpcode fmul fcmpe fune feqle fdiv fsqrt frem fint | 50 syn keyword mmixOpcode fmul fcmpe fune feqle fdiv fsqrt frem fint |
50 | 51 |