Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

first commit

  • Loading branch information...
commit 5ecc53f79c2ebb55a5070b3ec85923fed8d59160 0 parents
@txus authored
Showing with 59 additions and 0 deletions.
  1. +4 −0 Readme.md
  2. +1 −0  ftdetect/noscript.vim
  3. +54 −0 syntax/noscript.vim
4 Readme.md
@@ -0,0 +1,4 @@
+# vim-noscript
+
+Vim plugin that provides syntax highlighting for the [Noscript](
+http://github.com/txus/noscript) programming language.
1  ftdetect/noscript.vim
@@ -0,0 +1 @@
+au BufRead,BufNewFile *.ns setfiletype noscript
54 syntax/noscript.vim
@@ -0,0 +1,54 @@
+" Vim syntax file
+" Language: .ns files
+" Maintainer: Josep M. Bach <josep.m.bachNOSPAN@gmail.com>
+" Last Change: 2011 Sep 21
+
+if exists("b:current_syntax")
+ finish
+endif
+
+syn keyword xOperator == != >= <= > < =
+syn keyword xBoolean true false nil
+
+syn match xString /'[^']*'/ contains=xLInt,xRInt,xSpecial
+syn match xLInt '#{' contained
+syn match xRInt '}' contained
+syn match xSpecial "\\." contained
+
+syn match xSemicolon ";"
+syn match xFun "->"
+syn keyword xKeyword if else while end
+
+syn match xDeref "@[a-z][\ a-zA-Z]*"
+syn match xIdentifier "[a-z][\ a-zA-Z]*"
+syn match xKey "[a-z][\ a-zA-Z]*:"
+syn match xColon ":"
+syn keyword xBuiltin trait uses clone
+syn match xConstant "[A-Z][\ a-zA-Z]*"
+syn match xDigit "\d"
+
+hi link xDigit Constant
+hi link xBoolean Type
+
+hi link xString Constant
+hi link xQuote Special
+hi link xLInt Special
+hi link xRInt Special
+hi link xSpecial Special
+
+hi link xConstant Type
+
+hi link xIdentifier Normal
+hi link xKey Constant
+hi link xDeref Identifier
+hi link xBuiltin Special
+
+hi link xKeyword Statement
+hi link xFun Statement
+hi link xOperator Type
+
+hi link xSemicolon Identifier
+hi link xColon Identifier
+let b:current_syntax = "noscript"
+
+" vim: ts=8 sw=2
Please sign in to comment.
Something went wrong with that request. Please try again.