Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

59 lines (45 sloc) 1.316 kB
" Vim syntax file
" Language: .ns files
" Maintainer: Josep M. Bach <>
" Last Change: 2011 Sep 24
if exists("b:current_syntax")
syn keyword xOperator == != >= <= > < =
syn keyword xBoolean true false nil
syn match xComment "#.*$" display contains=xTodo
syn keyword xTodo TODO FIXME XXX contained
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 xComment Comment
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
Jump to Line
Something went wrong with that request. Please try again.