Skip to content

Commit

Permalink
feat(highlighting): colour method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
thennothinghappened committed Aug 18, 2024
1 parent 7be9b68 commit dd8e5dd
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Manual/contents/assets/scripts/gml.js
Original file line number Diff line number Diff line change
Expand Up @@ -3228,6 +3228,17 @@ export default function(hljs) {
3: "variable-global"
}
},
{
match: [
/(?<=[a-zA-Z_][a-zA-Z0-9_]*)/,
DOT_ACCESSOR_REG,
VALID_IDENTIFIER_REG,
/\s*\(/
],
className: {
3: "function"
}
},
{
match: [
/(?<=[a-zA-Z_][a-zA-Z0-9_]*)/,
Expand All @@ -3252,8 +3263,7 @@ export default function(hljs) {
],
className: {
1: "function"
},
relevance: 0
}
};

/**
Expand Down

0 comments on commit dd8e5dd

Please sign in to comment.