Update of /cvsroot/fte/fte/src
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv19443
Modified Files:
h_c.cpp
Log Message:
Fix broken indent after ?: in C mode
https://sourceforge.net/p/fte/patches/72/
Thanks, Krzysztof Nikiel
Index: h_c.cpp
===================================================================
RCS file: /cvsroot/fte/fte/src/h_c.cpp,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- h_c.cpp 14 Feb 2010 21:30:20 -0000 1.41
+++ h_c.cpp 13 Dec 2014 04:14:29 -0000 1.42
@@ -165,6 +165,10 @@
Color = CLR_Punctuation;
PRINTF(("----FOUND TRIPPLET\n"));
goto hilit;
+ } else if (State == hsC_Tripplet && *p == ';') {
+ State = hsC_Normal;
+ Color = CLR_Punctuation;
+ goto hilit;
} else if (ispunct(*p) && *p != '_') {
Color = CLR_Punctuation;
PRINTF(("----FOUND PUNKT\n"));
|