From 5a2488c59f2ae48be089d11ae3abb569c2f15b83 Mon Sep 17 00:00:00 2001 From: "Walied K. Yassen" Date: Thu, 29 Aug 2024 22:01:13 +0300 Subject: [PATCH] Add support for "midi" type --- CHANGELOG.md | 1 + src/main/kotlin/io/runescript/plugin/ide/config/RsConfig.kt | 1 + .../kotlin/io/runescript/plugin/lang/psi/type/RsPrimitiveType.kt | 1 + 3 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a14a24e..a24a202 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - Icons for script declarations. - Support for varclan and varclansetting. - Trigger support for shiftop and onclick variants. +- Support for "midi" type. ### Changed diff --git a/src/main/kotlin/io/runescript/plugin/ide/config/RsConfig.kt b/src/main/kotlin/io/runescript/plugin/ide/config/RsConfig.kt index f2d30eb..ce6eac2 100644 --- a/src/main/kotlin/io/runescript/plugin/ide/config/RsConfig.kt +++ b/src/main/kotlin/io/runescript/plugin/ide/config/RsConfig.kt @@ -19,6 +19,7 @@ object RsConfig { "seq", "stat", "synth", + "midi", "coord", "char", "fontmetrics", diff --git a/src/main/kotlin/io/runescript/plugin/lang/psi/type/RsPrimitiveType.kt b/src/main/kotlin/io/runescript/plugin/lang/psi/type/RsPrimitiveType.kt index ad14518..2865357 100644 --- a/src/main/kotlin/io/runescript/plugin/lang/psi/type/RsPrimitiveType.kt +++ b/src/main/kotlin/io/runescript/plugin/lang/psi/type/RsPrimitiveType.kt @@ -8,6 +8,7 @@ enum class RsPrimitiveType(val literal: String, val referencable: Boolean = true SEQ("seq"), STAT("stat"), SYNTH("synth"), + MIDI("midi"), COORD("coord"), CHAR("char"), FONTMETRICS("fontmetrics"),