Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Highlight enum in parameter list

  • Loading branch information...
commit 4a853f81ebcdfef5f6103774c387a7d2e506b0f2 1 parent ef86a85
Jesse Phillips authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  syntax/d.vim
  2. +1 −1  tests/hybrid.d
2  syntax/d.vim
View
@@ -172,7 +172,7 @@ syn region dImport start="module" end=";" contains=dExternal,@dComment
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
+syn cluster dTokens add=dStorageClass,dPragma,dAssert,dAnnotation,dEnum
" Create a match for parameter lists to identify storage class
syn region paramlist start="(" end=")" contains=@dTokens
2  tests/hybrid.d
View
@@ -11,6 +11,6 @@ in {
}
void bar(scope string a, string file = __FILE__)
-if(typeof(a) : string) {
+if(typeof(a) == enum) {
scope(exit) destroy(n);
}
Please sign in to comment.
Something went wrong with that request. Please try again.