Add syntax support for Renpy (#1789)

This commit is contained in:
Ryan Westlund
2020-07-22 15:26:37 -04:00
committed by GitHub
parent ab1d74dc79
commit 1f27f51f9a
2 changed files with 61 additions and 0 deletions

15
runtime/syntax/renpy.yaml Normal file
View File

@@ -0,0 +1,15 @@
filetype: renpy
detect:
filename: "\\.rpy$"
rules:
# Script language keywords.
- statement: "\\b(python|init|early|define|default|label|call|jump|image|layeredimage|screen|style|transform|menu|show|hide|scene|at|with|zorder|behind|pause|play|stop|fadeout|fadein|queue)\\b"
# ATL keywords.
- type: "\\b(repeat|block|choice|parallel|(x|y|)(pos|offset|anchor|align|center|tile|zoom)|time|linear|easein|alpha|subpixel)\\b"
- identifier: "\\bpersistent\\b"
- special: "\\$ "
# Tab characters are not allowed in Renpy scripts.
- error: "\\t"
- include: python