Ticket #4519 (closed defect: fixed)
php syntax: single line # style comments don't have to begin at the beginning of the line
Reported by: | purdeaandrei | Owned by: | andrew_b |
---|---|---|---|
Priority: | minor | Milestone: | 4.8.32 |
Component: | mcedit | Version: | master |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: | committed-master |
Description
See here: https://www.php.net/manual/en/language.basic-syntax.comments.php
the example is given clearly, the # does not start at the beginning of the line.
I have tried the following change, and it highlights my files correctly:
-
misc/syntax/php.syntax
diff --git a/misc/syntax/php.syntax b/misc/syntax/php.syntax index b1ba3da8b..b3f7f79fd 100644
a b context exclusive /\* \*/ brown 3156 3156 context exclusive // \n brown 3157 3157 spellcheck 3158 3158 3159 context linestart# \n brown3159 context # \n brown 3160 3160 spellcheck
Change History
comment:2 Changed 11 months ago by andrew_b
- Status changed from new to accepted
- Owner set to andrew_b
- Milestone changed from Future Releases to 4.8.32
comment:3 Changed 11 months ago by andrew_b
- Status changed from accepted to testing
- Votes for changeset set to committed-master
- Resolution set to fixed
Thanks!
Applied as [147f28ab24bf69a3465ae752f89da34ea0bf74b2].
Note: See
TracTickets for help on using
tickets.