Skip to content

Commit

Permalink
Add varclan and varclansetting support
Browse files Browse the repository at this point in the history
  • Loading branch information
waleedyaseen committed Aug 28, 2024
1 parent f68da3c commit 0e3c905
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Import functionality for Neptune modules.
- Local/system settings to manage launcher JRE and Neptune home.
- Icons for script declarations.
- Support for varclan and varclansetting.

### Changed

Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/io/runescript/plugin/ide/config/RsConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ object RsConfig {
"varp",
"varbit",
"varc",
"varclan",
"varclansetting",
"null",
"int",
"string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ class RsScopedVariableReference(element: RsScopedVariableExpression) :
private val scopedVarTypes = arrayOf(
RsPrimitiveType.VARP,
RsPrimitiveType.VARC,
RsPrimitiveType.VARBIT
RsPrimitiveType.VARBIT,
RsPrimitiveType.VARCLAN,
RsPrimitiveType.VARCLANSETTING
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ enum class RsPrimitiveType(val literal: String, val referencable: Boolean = true
FLU("flu", referencable = false),
VARP("varp", referencable = false),
VARBIT("varbit", referencable = false),
VARCLAN("varclan", referencable = false),
VARCLANSETTING("varclansetting", referencable = false),
VARC("varc", referencable = false),
NULL("null", referencable = false),
HOOK("hook", referencable = false),
Expand Down

0 comments on commit 0e3c905

Please sign in to comment.