1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-03-17 20:58:08 +02:00

Fix GDScript3 analyse regexes (#848)

This commit is contained in:
Carlos Henrique Guardão Gandarez 2023-09-16 00:52:47 -03:00 committed by GitHub
parent c4527e8d5c
commit 2b394614b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -7,8 +7,8 @@
<mime_type>text/x-gdscript</mime_type>
<mime_type>application/x-gdscript</mime_type>
<priority>0.1</priority>
<analyse first="true">
<regex pattern="^@" score="0.4"/>
<analyse>
<regex pattern="^export" score="0.1"/>
</analyse>
</config>
<rules>

View File

@ -6,8 +6,10 @@
<filename>*.gd</filename>
<mime_type>text/x-gdscript</mime_type>
<mime_type>application/x-gdscript</mime_type>
<analyse first="true">
<regex pattern="^export" score="0.1"/>
<analyse>
<regex pattern="func (_ready|_init|_input|_process|_unhandled_input)" score="0.8"/>
<regex pattern="(extends |class_name |onready |preload|load|setget|func [^_])" score="0.4"/>
<regex pattern="(var|const|enum|export|signal|tool)" score="0.2"/>
</analyse>
</config>
<rules>