From 30d603ec6782fca20ca5be236c8a104b0926704c Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Fri, 8 Jun 2007 07:05:23 +0000 Subject: [PATCH] * Syntax: Files that contain "/lua" in the first line are probably Lua source code. * lua.syntax: Comments may also start with "#", at least in the first line. --- syntax/ChangeLog | 7 +++++++ syntax/Syntax | 2 +- syntax/lua.syntax | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/syntax/ChangeLog b/syntax/ChangeLog index 4e6212af9..2d8aa6169 100644 --- a/syntax/ChangeLog +++ b/syntax/ChangeLog @@ -1,3 +1,10 @@ +2007-06-08 Roland Illig + + * Syntax: Files that contain "/lua" in the first line are + probably Lua source code. + * lua.syntax: Comments may also start with "#", at least in the + first line. + 2007-06-04 Pavel Roskin * diff.syntax: Don't use blue background for lines starting with diff --git a/syntax/Syntax b/syntax/Syntax index 9c3f3a57f..6ed66062a 100644 --- a/syntax/Syntax +++ b/syntax/Syntax @@ -136,7 +136,7 @@ include assembler.syntax file ..\*\\.([Pp][Oo][Vv])$ POV\sScript include povray.syntax -file ..\*\\.([lL][uU][aA])$ LUA\sProgram +file ..\*\\.([lL][uU][aA])$ LUA\sProgram ^#!.*/lua include lua.syntax file ..\*\\.([iI][dD][lL])$ CORBA\sIDL diff --git a/syntax/lua.syntax b/syntax/lua.syntax index 089ba63c4..4cfd32d8f 100644 --- a/syntax/lua.syntax +++ b/syntax/lua.syntax @@ -202,6 +202,7 @@ context exclusive --[[ ]] brown context exclusive -- \n brown spellcheck +context linestart # \n brown # Strings context " " brightgreen