Skip to content
Browse files

Update pragma highlighting length

  • Loading branch information...
1 parent f2ee5c3 commit 5b000745c521bf5911ccf1bed2bb21a7b9bf49f4 @JesseKPhillips committed Oct 5, 2013
Showing with 3 additions and 2 deletions.
  1. +2 −2 syntax/d.vim
  2. +1 −0 tests/builtinStatements.d
View
4 syntax/d.vim
@@ -158,7 +158,7 @@ syn match dStatement "\<__traits\s*([_a-zA-Z][_a-zA-Z0-9]*\>"he=s+8 contains=
" Pragma Statement
syn match dPragma "\<pragma\>"
-syn match dPragma "\<pragma\s*([_a-zA-Z][_a-zA-Z0-9]*\>"he=s+8 contains=dPragmaIdentifier
+syn match dPragma "\<pragma\s*([_a-zA-Z][_a-zA-Z0-9]*\>"he=s+6 contains=dPragmaIdentifier
" Necessary to highlight C++ in extern modifiers.
syn match dExternIdentifier "C\(++\)\?" contained
@@ -251,7 +251,7 @@ syn region dRawString start=+`+ end=+`[cwd]\=+ contains=@Spell
syn region dRawString start=+r"+ end=+"[cwd]\=+ contains=@Spell
syn region dHexString start=+x"+ end=+"[cwd]\=+ contains=@Spell
syn region dDelimString start=+q"\z(.\)+ end=+\z1"+ contains=@Spell
-syn region dHereString start=+q"\z(\I\i*\)\n+ end=+\n\z1"+ contains=@Spell
+syn region dHereString start=+q"\z(\I\i*\)\n+ end=+^\z1"+ contains=@Spell
" Nesting delimited string contents
"
View
1 tests/builtinStatements.d
@@ -1,4 +1,5 @@
pragma(msg, "hello");
+pragma(ident);
scope(exit);
version(D_Version2);
pragma(lib, "hello.lib");

0 comments on commit 5b00074

Please sign in to comment.
Something went wrong with that request. Please try again.