Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
sqlj.vim92 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:	sqlj3" Maintainer:	Andreas Fischbach <afisch@altavista.com>4"		This file is based on sql.vim && java.vim (thanx)5"		with a handful of additional sql words and still6"		a subset of whatever standard7" Last change:	31th Dec 20018 9" au BufNewFile,BufRead *.sqlj so $VIM/syntax/sqlj.vim10 11" quit when a syntax file was already loaded12if exists("b:current_syntax")13   finish14endif15 16" Read the Java syntax to start with17source <sfile>:p:h/java.vim18 19" SQLJ extensions20" The SQL reserved words, defined as keywords.21 22syn case ignore23syn keyword sqljSpecial   null24 25syn keyword sqljKeyword	access add as asc by check cluster column26syn keyword sqljKeyword	compress connect current decimal default27syn keyword sqljKeyword	desc else exclusive file for from group28syn keyword sqljKeyword	having identified immediate increment index29syn keyword sqljKeyword	initial into is level maxextents mode modify30syn keyword sqljKeyword	nocompress nowait of offline on online start31syn keyword sqljKeyword	successful synonym table then to trigger uid32syn keyword sqljKeyword	unique user validate values view whenever33syn keyword sqljKeyword	where with option order pctfree privileges34syn keyword sqljKeyword	public resource row rowlabel rownum rows35syn keyword sqljKeyword	session share size smallint36 37syn keyword sqljKeyword  fetch database context iterator field join38syn keyword sqljKeyword  foreign outer inner isolation left right39syn keyword sqljKeyword  match primary key40 41syn keyword sqljOperator	not and or42syn keyword sqljOperator	in any some all between exists43syn keyword sqljOperator	like escape44syn keyword sqljOperator union intersect minus45syn keyword sqljOperator prior distinct46syn keyword sqljOperator	sysdate47 48syn keyword sqljOperator	max min avg sum count hex49 50syn keyword sqljStatement	alter analyze audit comment commit create51syn keyword sqljStatement	delete drop explain grant insert lock noaudit52syn keyword sqljStatement	rename revoke rollback savepoint select set53syn keyword sqljStatement	 truncate update begin work54 55syn keyword sqljType		char character date long raw mlslabel number56syn keyword sqljType		rowid varchar varchar2 float integer57 58syn keyword sqljType		byte text serial59 60 61" Strings and characters:62syn region sqljString		start=+"+  skip=+\\\\\|\\"+  end=+"+63syn region sqljString		start=+'+  skip=+\\\\\|\\"+  end=+'+64 65" Numbers:66syn match sqljNumber		"-\=\<\d*\.\=[0-9_]\>"67 68" PreProc69syn match sqljPre		"#sql"70 71" Comments:72syn region sqljComment    start="/\*"  end="\*/"73syn match sqlComment	"--.*"74 75syn sync ccomment sqljComment76 77 78" The default methods for highlighting. Can be overridden later.79hi def link sqljComment	Comment80hi def link sqljKeyword	sqljSpecial81hi def link sqljNumber	Number82hi def link sqljOperator	sqljStatement83hi def link sqljSpecial	Special84hi def link sqljStatement	Statement85hi def link sqljString	String86hi def link sqljType	Type87hi def link sqljPre	PreProc88 89 90let b:current_syntax = "sqlj"91 92 
codekingpro/portable-devtools · Team Ai