mudlet-makers team mailing list archive
-
mudlet-makers team
-
Mailing list archive
-
Message #04750
[Bug 934508] Re: syntax highlighting of single-quoted strings
Migrating issues to Github, please follow the new discussion here:
https://github.com/Mudlet/Mudlet/issues/641
This issue needs to be closed and there is no appropriate status, so
will set it to "Opinion" just for migration purposes.
** Bug watch added: github.com/Mudlet/Mudlet/issues #641
https://github.com/Mudlet/Mudlet/issues/641
** Changed in: mudlet
Status: New => Opinion
--
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
https://bugs.launchpad.net/bugs/934508
Title:
syntax highlighting of single-quoted strings
Status in Mudlet:
Opinion
Bug description:
This is more a feature request than a bug report. The syntax highlighting in the script editor currently recognizes double-quoted and multiline strings ("string" and [[string]]) but not single-quoted ones ('string'), which are also valid in Lua. From a look at the code, it should be a simple addition to THighlighter.cpp:
54 rule.pattern = QRegExp( "'[^']*'" );
55 rule.format = quotationFormat;
56 highlightingRules.append( rule );
Line numbers from my current version of the source, a git snapshot
from 1/25/2012.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mudlet/+bug/934508/+subscriptions
References