aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2012-06-29 16:44:42 -0400
committersienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2012-06-29 16:44:42 -0400
commit699447dcbd0b86656f742415c879c71d8c7f8fbd (patch)
tree882065240e6cf3a30419dfa9c76655b0841e446c
parentbd5d4684321ec15df3aa4c48cdcce78fbdc1f0e9 (diff)
downloadsteuermann-699447dcbd0b86656f742415c879c71d8c7f8fbd.tar.gz
vim syntax highlight
git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@737 d34015c8-bcbb-4646-8ac8-8ba5febf221d
-rw-r--r--steuermann.vim22
1 files changed, 22 insertions, 0 deletions
diff --git a/steuermann.vim b/steuermann.vim
new file mode 100644
index 0000000..97c3b2f
--- /dev/null
+++ b/steuermann.vim
@@ -0,0 +1,22 @@
+" To use syntax highlighting with vim:
+"
+" put this file in ~/.vim/syntax/steuermann.vim
+"
+" put this command in ~/.vimrc
+" autocmd BufRead,BufNewFile *.sm set filetype=steuermann
+
+syntax match Comment "#.*$"
+
+syntax keyword Keyword HOSTGROUP TABLE HOST CMD OPT AFTER RUN LOCAL
+syntax keyword Keyword IMPORT DEBUG
+
+syntax match IfClause "IF[^:]*:"
+
+highlight IfClause guifg=green ctermfg=2
+
+syntax match String "\"[^"]*\""
+
+syntax region PreProc start="CONDITIONS" end="[\s]*END[ \t]*\n"
+
+syntax sync fromstart
+