[llvm-commits] CVS: llvm/utils/vim/README tablegen.vim

Misha Brukman brukman at cs.uiuc.edu
Mon Aug 11 13:06:02 PDT 2003


Changes in directory llvm/utils/vim:

README updated: 1.2 -> 1.3
tablegen.vim updated: 1.1 -> 1.2

---
Log message:

tablegen.vim:
* Added keyword `field'
* Keywords get different highlighting than types
* Added a simple attempt at multi-line C-style comments with FIXME

README:
* Added note about symlinking an entire directory ~/.vim/syntax


---
Diffs of the changes:

Index: llvm/utils/vim/README
diff -u llvm/utils/vim/README:1.2 llvm/utils/vim/README:1.3
--- llvm/utils/vim/README:1.2	Mon Aug 11 13:01:39 2003
+++ llvm/utils/vim/README	Mon Aug 11 13:05:19 2003
@@ -25,6 +25,10 @@
 IMPORTANT: Making symlinks from ~/.vim/syntax/... to the syntax files in your
 LLVM source tree does not work, you DO need to copy the files directly.
 
+However, if you do not already have a ~/.vim/syntax/ directory, simply
+symlinking it to llvm/utils/vim will do the trick nicely, and you can stay
+up-to-date with CVS.
+
 Note: If you notice missing or incorrect syntax highlighting, please contact
 <llvmbugs [at] cs.uiuc.edu>; if you wish to provide a patch to improve the
 functionality, it will be most appreciated. Thank you.


Index: llvm/utils/vim/tablegen.vim
diff -u llvm/utils/vim/tablegen.vim:1.1 llvm/utils/vim/tablegen.vim:1.2
--- llvm/utils/vim/tablegen.vim:1.1	Mon Aug 11 12:56:08 2003
+++ llvm/utils/vim/tablegen.vim	Mon Aug 11 13:05:19 2003
@@ -11,11 +11,13 @@
 
 syn case match
 
-syn keyword tgKeyword   def let in code dag
-syn keyword tgType      class int string list bit bits
+syn keyword tgKeyword   def let in code dag field
+syn keyword tgType      class int string list bit bits 
 syn match   tgNumber    /\<\d\+\>/
 syn match   tgNumber    /\<\d\+\.\d*\>/
 syn match   tgComment   /\/\/.*$/
+" FIXME: this does not capture multi-line C-style comments
+syn match   tgComment   /\/\*.*\*\//
 syn region  tgString    start=/"/ skip=/\\"/ end=/"/
 
 if version >= 508 || !exists("did_c_syn_inits")
@@ -26,9 +28,8 @@
     command -nargs=+ HiLink hi def link <args>
   endif
 
-  HiLink tgKeyword Type
+  HiLink tgKeyword Statement
   HiLink tgType Type
-  "HiLink llvmStatement Statement
   HiLink tgNumber Number
   HiLink tgComment Comment
   HiLink tgString String





More information about the llvm-commits mailing list