1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 <2014> 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 <2014> 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: SNL syntax highlight for text editors |
From: | Florian Feldbauer <[email protected]> |
To: | Mazanec Tomáš <[email protected]>, "[email protected]" <[email protected]> |
Date: | Sat, 23 Aug 2014 19:09:24 +0200 |
Hey,
nice work! I just created a syntax file for vim. In principal I just extended the cpp syntax highlighting from vim... Either copy the files to ~/.vim/ftdetect/snl_filetype.vim ~/.vim/syntax/snl.vim ot (for system-wide use) to $VIM/vimfiles/ftdetect/snl_filetype.vim
$VIM/vimfiles/syntax/snl.vim Regards, Florian BTW: Are there syntax highlighting for db or protocol files? (Preferable for vim) On 08/23/2014 12:11 AM, Mazanec Tomáš wrote:
-- ---------------------------------------- | Dr. Florian Feldbauer | | | | Helmholtz-Institut Mainz / | | Johannes Gutenberg-Universität Mainz | | Johann-Joachim-Becher-Weg 36 | | D-55128 Mainz | | | | Office: SB1 / 00-321 | | Phone: (+49)6131 / 39-29605 | ---------------------------------------- |
" Vim syntax file " Language: SNL " Author: Florian Feldbauer <[email protected]> " Licence: GPL (http://www.gnu.org) " Remarks: Vim 6 or greater if exists("b:current_syntax") finish endif " Read the Cpp syntax to start with runtime! syntax/cpp.vim unlet b:current_syntax syn keyword snlKeyword program ss state syn match snlFunction "\<[a-zA-Z][a-zA-Z0-9_]*\s*(" syn keyword snlFunctionName assign to monitor entry exit when option pvPut printf nextgroup=snlFunction skipwhite " Define the default highlighting. hi def link snlKeyword Statement hi def link snlFunctionName Function let b:current_syntax = "snl"
" Vim filetype detection file " Language: SNL " Author: Florian Feldbauer <[email protected]> " Licence: GPL (http://www.gnu.org) " Remarks: Vim 6 or greater au BufRead,BufNewFile *.stt set filetype=snl