Permalink
Browse files

Fix issue 18 heredoc strings don't work in parameter list

  • Loading branch information...
1 parent e1c0b9b commit 5efce471cbba0a6f4638caf4811bf3cf2996256f @JesseKPhillips committed Jul 30, 2013
Showing with 16 additions and 0 deletions.
  1. +2 −0 syntax/d.vim
  2. +14 −0 tests/param.d
View
@@ -178,6 +178,8 @@ syn cluster dTokens contains=dExternal,dConditional,dBranch,dRepeat,dBoolean
syn cluster dTokens add=dConstant,dTypedef,dStructure,dOperator,dOpOverload
syn cluster dTokens add=dType,dDebug,dExceptions,dScopeDecl,dStatement
syn cluster dTokens add=dStorageClass,dPragma,dAssert,dAnnotation,dEnum
+syn cluster dTokens add=dParenString,dBrackString,dAngleString,dCurlyString
+syn cluster dTokens add=dTokenString
" Create a match for parameter lists to identify storage class
syn region paramlist start="(" end=")" contains=@dTokens
View
@@ -0,0 +1,14 @@
+void main() {
+ writeln(q"EOS
+ This
+ is a multi-line
+ heredoc string
+EOS");
+
+ enum a = "Not in heredoc";
+
+ writeln(q"[
+<!DOCTYPE html>]", 0x82);
+ import std.stdio;
+
+}

0 comments on commit 5efce47

Please sign in to comment.