-
Notifications
You must be signed in to change notification settings - Fork 69
A bunch of new matches #27
Comments
Hey @rszabo! Thanks for sharing your changes. The best way to review those set against the full source file is to upload your version of |
As for the |
Sure! I left a comment on row 475 which really shouldn't be disabled but it's self-explanatory why I did it. |
You don't happen to know the correct syntax for phpClassConstant and phpStaticMethods? It bugs me that phpParentError believes that one parenthesis is off. |
I've reviewed your code and have commented below on the proposed changes:
|
Sorry for the serious delay in replying. Glad I could help, and thanks for pointing out me=e-n, really good stuff. |
Hey, I am archiving this discussion as it has gotten quite old now and hasn't seen any updated in over an year. If you have anything new to report, please feel free to reopen with more information. Thanks! |
Hi there! Have you tried this with nvim, any recent version? I.e. NVIM 0.1.0 (compiled Nov 5 2015 00:37:23) / Commit: v0.1.0 Several of these matches that existed while we were working on this are no longer usable, i.e. phpStaticClasses, phpStaticClassVariable, phpStaticMethods.
Thank you |
Hey @rszabo, the functionality in question wasn't merged in this repository. I had left you some feedback in my earlier post. |
@StanAngeloff Yes, sorry about being away. I implemented many of those as I wrote, but failed to go upstream. Either way, they were working fine but somewhere along the neovim updates they broke, and figured maybe you saw any immediate errors. |
Mm, interesting, other than a line for the missing |
I'd love to provide a pull request of some changes in the near future. You should check out neovim, it's much faster and instead of using Bundle you can use Plug which supports threads and more. |
Hello.
I'm not accustomed to the way pull requests are made here so I'm sharing some changes I made locally.
These changes add proper handling of class constants and static methods and -variables, makes null/array/boolean separate types and more.
Remember to add the keywords to "syn cluster" or else they aren't exported properly.
syn match phpStaticSelector "::" contained display
syn match phpClassConstant "::\h\w_[^(]\w" contained contains=phpMethods,phpStaticSelector display
syn match phpStaticMethods "::\h\w_(" contained contains=phpMethods,phpStaticSelector display
syn match phpStaticClasses "\v\h\w+(::)@=" contained display
syn keyword phpException DomainException BadFunctionCallException BadMethodCallException InvalidArgumentException OutOfBoundsException OutOfRangeException OverflowException UnderflowException UnexpectedValueException UserException RuntimeException LogicException ErrorException DOMException ReflectionException Exception contained
syn keyword phpArray array contained
syn keyword phpBoolean true false TRUE FALSE contained
syn keyword phpNull null NULL contained
" Default links
hi def link phpBoolean Boolean
hi def link phpNull Null
hi def link phpArray Array
Furthermore, I strongly suggest adding file|class|brief|details|author|created|date|todo|bug|warning| to the list of phpDocTags.
The text was updated successfully, but these errors were encountered: