Quick-Turn-Studio / CLionSupportForQt

19 stars 0 forks source link

Feature: support preprocessed variables #59

Open tothambrus11 opened 2 years ago

tothambrus11 commented 2 years ago

Plugin

Qt Style Sheets Editor

Feature description

It would be nice to have valid syntax highlighting for variables that are preprocessed by our program. These usually start with an @ symbol, but it could be a setting so others could define their owns (they might use a $ sign, idk). There could be code completition for variable names after typing that special character.

The variable names could come from an editor settings option tracked by VCS, and could be extended using an alt+enter option when an unknown/new variable name is detected.

Example

FilterCheckbox {
    background: @backgroundColor;
}
FilterCheckbox {
    background: $backgroundColor;
}