File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/main/java/com/tang/intellij/lua/highlighting Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -85,24 +85,26 @@ object LuaHighlightingData {
8585 )
8686
8787 /* *
88- * LSP 只读局部变 - 使用绿色高亮
88+ * LSP 只读局部变 - 使用柔和的绿色系,表示安全的只读变量
8989 */
9090 val LSP_READ_ONLY_LOCAL = TextAttributesKey .createTextAttributesKey(
9191 " LUA_LSP_READ_ONLY_LOCAL" ,
9292 TextAttributes ().apply {
93- foregroundColor = JBColor (Color (0x0000FF ), Color (0x589DF6 ))
93+ foregroundColor = JBColor (Color (0x2D5A2D ), Color (0x6B9F6B )) // 更柔和的深绿色
94+ backgroundColor = JBColor (Color (0xF5F8F5 ), Color (0x1A2A1A )) // 更淡的绿色背景
9495 fontType = Font .ITALIC
9596 }
9697 )
9798
9899 /* *
99- * LSP 可变局部变量 - 使用类似Java的可变量颜色
100+ * LSP 可变局部变量 - 使用蓝色系,类似Java的局部变量
100101 */
101102 val LSP_MUT_LOCAL = TextAttributesKey .createTextAttributesKey(
102103 " LUA_LSP_MUT_LOCAL" ,
103104 TextAttributes ().apply {
104105 foregroundColor = JBColor (Color (0x0000FF ), Color (0x589DF6 )) // 蓝色,类似Java变量
105- fontType = Font .PLAIN
106+ backgroundColor = JBColor (Color (0xF0F5FF ), Color (0x1A1F2A )) // 淡蓝背景
107+ fontType = Font .PLAIN // 普通字体,表示可变
106108 }
107109 )
108110
You can’t perform that action at this time.
0 commit comments