From: Brendan Hansen Date: Thu, 21 Jan 2021 02:16:00 +0000 (-0600) Subject: better fix for sublime syntax X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=6394d14787457753eceb92a319919278d939e53d;p=onyx.git better fix for sublime syntax --- diff --git a/misc/onyx.sublime-syntax b/misc/onyx.sublime-syntax index 015bd46a..b2da1511 100644 --- a/misc/onyx.sublime-syntax +++ b/misc/onyx.sublime-syntax @@ -56,9 +56,11 @@ contexts: 1: entity.name.function 2: keyword.control.onyx - - match: '([a-zA-Z_][a-zA-Z0-9_]*)\s*::\s*\([^:]*:.*\)' + - match: '([a-zA-Z_][a-zA-Z0-9_]*)\s*::\s*\(' captures: 1: entity.name.function + embed: main + escape: '\)' - match: '([a-zA-Z_][a-zA-Z0-9_]*)\s*::\s*(struct)' captures: diff --git a/onyx.exe b/onyx.exe index 6673435d..995887b0 100644 Binary files a/onyx.exe and b/onyx.exe differ