summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Corbett <corbett.dav@husky.neu.edu>2015-12-13 19:36:55 -0500
committerDavid Corbett <corbett.dav@husky.neu.edu>2015-12-13 19:36:55 -0500
commitaa671606019c3ed282e9fdbdbb832896405fd219 (patch)
tree7d64a766214c9ed6db74feec3eaac12ab18a1b5d
parent2b910cf6b576321b1261379ca2be2d2f19d88ae1 (diff)
downloadpygments-aa671606019c3ed282e9fdbdbb832896405fd219.tar.gz
Allow strings in Inform 6 parameter lists
-rw-r--r--pygments/lexers/int_fiction.py1
-rw-r--r--tests/examplefiles/inform6_example7
2 files changed, 5 insertions, 3 deletions
diff --git a/pygments/lexers/int_fiction.py b/pygments/lexers/int_fiction.py
index 25c472b1..724f9b27 100644
--- a/pygments/lexers/int_fiction.py
+++ b/pygments/lexers/int_fiction.py
@@ -285,6 +285,7 @@ class Inform6Lexer(RegexLexer):
include('_whitespace'),
(r';', Punctuation, '#pop'),
(r'\*', Punctuation),
+ (r'"', String.Double, 'plain-string'),
(_name, Name.Variable)
],
# Array
diff --git a/tests/examplefiles/inform6_example b/tests/examplefiles/inform6_example
index 73cdd087..6fa1fe5b 100644
--- a/tests/examplefiles/inform6_example
+++ b/tests/examplefiles/inform6_example
@@ -8,8 +8,8 @@ Switches d2SDq;
Constant Story "Informal Testing";
Constant Headline "^Not a game.^";!% This is a comment, not ICL.
-Release 2;
-Serial "140308";
+Release 3;
+Serial "151213";
Version 5;
Ifndef TARGET_ZCODE;
@@ -174,7 +174,8 @@ Extend 'wave' replace * -> NewWave;
Extend only 'feel' 'touch' replace * noun -> Feel;
-[ TestSub a b o;
+[ TestSub "a\
+ " b o "@@98"; ! Not an escape sequence.
string 25 low_string;
print "Test what?> ";
table->0 = 260;