Sublime Forum

D.sublime-syntax - doesn't catch all function names

#1

Hi,

The regexes for function names in the D programming language syntax file don’t catch function names with @attributes prefixing them, or pointer* return types.
I’ve fixed the regexes by mainly removing ‘^’ so it won’t match only beginning of line, and added ‘*’ for the pointer return.

So far I didn’t see something broken or a degradation in performance.

Here’s my fixed version:
https://dl.dropboxusercontent.com/u/104000/D.sublime-syntax

Would appreciate it if you’ll fix it for the next update.

Thanks,
Alex

0 Likes

#2

The packages are up on github now and they’ve been accepting pull requests. Would be a good spot to post/send fix of the issue.

1 Like

#3

Oh thanks didn’t know that

0 Likes