aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexKix.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-07-08 10:53:03 +1000
committerNeil <nyamatongwe@gmail.com>2014-07-08 10:53:03 +1000
commit126d13674fa63256b6576e5317791b6f77ebefb3 (patch)
treeddca71b2716c8482667f00e83b5941dff572ed33 /lexers/LexKix.cxx
parentae8e06d8621069fbb3ae056728bcc48650098928 (diff)
downloadscintilla-mirror-126d13674fa63256b6576e5317791b6f77ebefb3.tar.gz
Feature [feature-requests:#1053]. Add a block comment state.
Diffstat (limited to 'lexers/LexKix.cxx')
-rw-r--r--lexers/LexKix.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/lexers/LexKix.cxx b/lexers/LexKix.cxx
index 32af263fd..dc509e4ca 100644
--- a/lexers/LexKix.cxx
+++ b/lexers/LexKix.cxx
@@ -4,6 +4,7 @@
**/
// Copyright 2004 by Manfred Becker <manfred@becker-trdf.de>
// The License.txt file describes the conditions under which this software may be distributed.
+// Edited by Lee Wilmott (24-Jun-2014) added support for block comments
#include <stdlib.h>
#include <string.h>
@@ -54,6 +55,10 @@ static void ColouriseKixDoc(unsigned int startPos, int length, int initStyle,
if (sc.atLineEnd) {
sc.SetState(SCE_KIX_DEFAULT);
}
+ } else if (sc.state == SCE_KIX_COMMENTSTREAM) {
+ if (sc.ch == '/' && sc.chPrev == '*') {
+ sc.ForwardSetState(SCE_KIX_DEFAULT);
+ }
} else if (sc.state == SCE_KIX_STRING1) {
// This is a doubles quotes string
if (sc.ch == '\"') {
@@ -104,6 +109,8 @@ static void ColouriseKixDoc(unsigned int startPos, int length, int initStyle,
if (sc.state == SCE_KIX_DEFAULT) {
if (sc.ch == ';') {
sc.SetState(SCE_KIX_COMMENT);
+ } else if (sc.ch == '/' && sc.chNext == '*') {
+ sc.SetState(SCE_KIX_COMMENTSTREAM);
} else if (sc.ch == '\"') {
sc.SetState(SCE_KIX_STRING1);
} else if (sc.ch == '\'') {