! Syntax Highlighting Patterns for Lua
!
! For NEdit 5.0 and above
!
! Contributed by Reuben Thomas (rrt@sc3d.org)
!
! In NEdit Version 5.0.1 and above, load this pattern by starting nedit with:
!
!     nedit -import <name of this file>
!
! Then, check that the patterns were loaded correctly, and choose Save Defaults
! from the Preferences menu.  The new patterns will now be incorporated into
! your own .nedit file, so the next time you start NEdit, you will no longer
! need to use -import.
!
nedit.highlightPatterns: \
	Lua:1:0{\n\
		comment:"--":"$"::Comment::\n\
		keyword:"<(and|break|do|else|elseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while)>":::Keyword::\n\
		string:"""":"""":"\\n":String::\n\
		string2:"'":"'":"\\n":String::\n\
		string3:"\\[\\[":"]]"::String::\n\
		substring3:"\\[\\[":"]]"::String:string3:\n\
		string escape chars:"\\\\.":::String1:string:\n\
		string escape chars 2:"\\\\.":::String1:string2:\n\
		numeric constant:"<((\\+|-)?(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)>":::Numeric Const::\n\
		hashbang:"^[ \\t]*#[ \\t]*!.*lua":"$"::Comment::\n\
	}
nedit.languageModes: 	Lua:.lua:"^[ \\t]*#[ \\t]*!.*lua":::::
