Skip to content

Commit

Permalink
fix: correct parent scope is title
Browse files Browse the repository at this point in the history
- also add `title.function.invoke` to the official list
  (Rust was already using)
  • Loading branch information
joshgoebel committed Dec 15, 2021
1 parent d6e220e commit 444581b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/css-classes-reference.rst
Expand Up @@ -70,6 +70,8 @@ in mind so a better choice (for best theme support) might possibly be ``string``
+--------------------------+-------------------------------------------------------------+
| title.function | name of a function |
+--------------------------+-------------------------------------------------------------+
| title.function.invoke | name of a function (when being invoked) |
+--------------------------+-------------------------------------------------------------+
| params | block of function arguments (parameters) at the |
| | place of declaration |
+--------------------------+-------------------------------------------------------------+
Expand Down
2 changes: 1 addition & 1 deletion src/languages/php.js
Expand Up @@ -330,7 +330,7 @@ export default function(hljs) {
regex.lookahead(/(?=\()/)
],
scope: {
3: "function.title.invoke",
3: "title.function.invoke",
}
};

Expand Down

0 comments on commit 444581b

Please sign in to comment.