← Back to team overview

mudlet-makers team mailing list archive

[Bug 934508] [NEW] syntax highlighting of single-quoted strings

 

Public bug reported:

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.

** Affects: mudlet
     Importance: Undecided
         Status: New

-- 
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 the MUD client:
  New

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


Follow ups

References