Skip to content

Commit

Permalink
enh(autodetect) php: only count => in fn context
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Oct 9, 2020
1 parent fbdaf50 commit 119031e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/languages/php.js
Expand Up @@ -126,6 +126,9 @@ export default function(hljs) {
illegal: '[$%\\[]',
contains: [
hljs.UNDERSCORE_TITLE_MODE,
{
begin: '=>' // No markup, just a relevance booster
},
{
className: 'params',
begin: '\\(', end: '\\)',
Expand Down

0 comments on commit 119031e

Please sign in to comment.