Discussion:
[PATCH] Update starting chars for DMIS
Andreas Tscharner
2014-05-01 16:18:56 UTC
Permalink
Hello World,
Hello Neil,

Today I noticed that DMIS minor words can not only start by any char and
the dash, but also by the digits 2, 3 or 4.

Attached and inline is a path that updates the character set in the
LexDMIS file


----- Start -----
# HG changeset patch
# User Andreas Tscharner <***@vis.ethz.ch>
# Date 1398960618 -7200
# Thu May 01 18:10:18 2014 +0200
# Node ID 47930e19603b1ac508b6172e69285e540e13aaba
# Parent 8164b2f5505de3ac545d219b4c8545838271e7d9
DMIS Minor words can also start with the digits 2, 3 or 4

diff --git a/lexers/LexDMIS.cxx b/lexers/LexDMIS.cxx
--- a/lexers/LexDMIS.cxx
+++ b/lexers/LexDMIS.cxx
@@ -192,7 +192,7 @@
LexAccessor styler(pAccess);
StyleContext scCTX(startPos, lengthDoc, initStyle, styler);
CharacterSet setDMISNumber(CharacterSet::setDigits, ".-+eE");
- CharacterSet setDMISWordStart(CharacterSet::setAlpha, "-", 0x80, true);
+ CharacterSet setDMISWordStart(CharacterSet::setAlpha, "-234", 0x80, true);
CharacterSet setDMISWord(CharacterSet::setAlpha);
----- End -----


Best regards
Andreas
--
Andreas Tscharner <***@gmail.com>
----------------------------------------------------------------------
"Intruder on level one. All Aliens please proceed to level one."
-- Call in "Alien: Resurrection"
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Neil Hodgson
2014-05-01 22:55:34 UTC
Permalink
Hi Andreas,
Today I noticed that DMIS minor words can not only start by any char and the dash, but also by the digits 2, 3 or 4.
The bug tracker is meant for handling bugs and fixes. It provides a work flow for both me and others. Sending patches to the mailing list means they are more likely to get lost.
http://sourceforge.net/p/scintilla/bugs/

Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Search results for '[PATCH] Update starting chars for DMIS' (Questions and Answers)
4
replies
booting files of computers in window xp?
started 2007-02-13 20:10:59 UTC
software
Loading...