Skip to content

Commit

Permalink
added php pound style comments; fixed EnlighterJS#118
Browse files Browse the repository at this point in the history
  • Loading branch information
AndiDittrich committed Jul 11, 2020
1 parent 1f309ec commit 38a3d6d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* Added: kotlin string template support
* Added: `r` language support (covered by generic ruleset)
* Added: MikroTik `RouterOS` language support (ros/mikrotik/switchos/routeros/mt)
* Added: pound style comment support to `php`
* Changed: css selector fragment highlighting is limited to the selector itself
* Changed: enhanced css unit parsing
* Changed: `java`, `scala`, `cpp` annotation token changed to `k11`
Expand Down
2 changes: 1 addition & 1 deletion dist/enlighterjs.min.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/lang/php.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ export class php extends generic {
// slash style comments
_language_common_rules.slashComments,

// pound style comments
_language_common_rules.poundComments,

// multi line comments
_language_common_rules.blockComments,

Expand Down

0 comments on commit 38a3d6d

Please sign in to comment.