Skip to content

Commit

Permalink
Fix issue 18 heredoc strings don't work in parameter list
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseKPhillips committed Jul 30, 2013
1 parent e1c0b9b commit 5efce47
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions syntax/d.vim
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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=dConstant,dTypedef,dStructure,dOperator,dOpOverload
syn cluster dTokens add=dType,dDebug,dExceptions,dScopeDecl,dStatement syn cluster dTokens add=dType,dDebug,dExceptions,dScopeDecl,dStatement
syn cluster dTokens add=dStorageClass,dPragma,dAssert,dAnnotation,dEnum 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 " Create a match for parameter lists to identify storage class
syn region paramlist start="(" end=")" contains=@dTokens syn region paramlist start="(" end=")" contains=@dTokens
Expand Down
14 changes: 14 additions & 0 deletions tests/param.d
Original file line number Original file line Diff line number Diff line change
@@ -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.