Skip to content

Commit c774ea8

Browse files
committed
fix(documentation): highlight parameter with its color
1 parent 4023f16 commit c774ea8

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/main/kotlin/org/tonstudio/tact/ide/colors/TactColor.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ enum class TactColor(readableName: @NlsContexts.AttributeDescriptor String, defa
2929
MUTABLE_VARIABLE("Variables//Mutable variable", Default.REASSIGNED_LOCAL_VARIABLE),
3030
PARAMETER("Variables//Parameter", Default.PARAMETER),
3131

32-
// Types
33-
BUILTIN_TYPE("Types//Builtin type", Default.KEYWORD),
34-
3532
// Comments
3633
LINE_COMMENT("Comments//Line comments", Default.LINE_COMMENT),
3734
BLOCK_COMMENT("Comments//Block comments", Default.BLOCK_COMMENT),

src/main/kotlin/org/tonstudio/tact/ide/documentation/documentation.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ fun TactParamDefinition.generateDoc(): String {
435435
val type = getType(null)
436436

437437
part("parameter", asKeyword)
438-
colorize(name ?: "", asIdentifier)
438+
colorize(name ?: "", asParameter)
439439
append(": ")
440440
append(type?.generateDoc(this@generateDoc) ?: "unknown")
441441
append(DocumentationMarkup.DEFINITION_END)

0 commit comments

Comments
 (0)