Skip to content

Commit 858d75a

Browse files
authored
Merge pull request #4 from bcoady/master
Corrected multi-line comments to be a highlighted as a region. Added gitignore.
2 parents 8c13f52 + 9624ff0 commit 858d75a

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*~
2+
*.swp

syntax/tp.vim

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
" Vim syntax file
2-
" Language: FANUC TP
3-
" Author: Jay Strybis <jay.strybis@gmail.com>
4-
" URL: http://github.com/onerobotics/vim-tp
5-
" License: MIT
2+
" Language: FANUC TP
3+
" Author: Jay Strybis <jay.strybis@gmail.com>
4+
" Contributors: Ben Coady
5+
" URL: http://github.com/onerobotics/vim-tp
6+
" License: MIT
67

78
if exists("b:current_syntax")
89
finish
@@ -160,7 +161,7 @@ hi def link tpKeyword Keyword
160161

161162
" Comments
162163
syn match tpComment /\(\s*\d*:\s*\)\@<=!.*/ contains=@spell
163-
syn match tpComment /\(\s*\d*:\s*\)\@<=--eg:.*/ contains=@spell
164+
syn region tpComment start="--eg:" end=";" contains=@spell
164165
syn match tpRemark /\(\s*\d*:\s*\)\@<=\/\/.*/
165166
hi def link tpComment Comment
166167
hi def link tpRemark Comment

0 commit comments

Comments
 (0)