Skip to content

Commit

Permalink
Update slint-lsp binary and fix slint syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
kizeevov committed Dec 26, 2024
1 parent bc76946 commit 676399b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@

## [Unreleased]

### Features

- Slint-LSP binary v1.9.1

### Fixed

- Fixed `@tr` syntax ([issue 65](https://github.com/kizeevov/slint-idea-plugin/issues/65))
- Fixed `gradient-steps()` array syntax ([issue 65](https://github.com/kizeevov/slint-idea-plugin/issues/65))

## [1.3.0] - 2024-11-22

### Features
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ pluginUntilBuild =
platformPlugins =
jvmVersion = 17

slintLspVersion = 1.8.0
slintLspVersion = 1.9.1
5 changes: 4 additions & 1 deletion src/main/grammars/SlintParser.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ Expression ::=
| AnonymousStructExpression
| ArrayAnonymousStructExpression
| ArrayValExpression
| ArrayFunctionExpression

MathematicalOperators ::=
ADDITION
Expand Down Expand Up @@ -436,6 +437,7 @@ ArrayExpression ::= PropertyExpression '[' Expression ']'
ArrayAnonymousStructExpression ::= ArrayAnonymousStruct
AnonymousStructExpression ::= AnonymousStructDeclaration
ArrayValExpression ::= '[' Expression? (',' (Expression | &']'))* ']'
ArrayFunctionExpression ::= CallExpression '[' Expression ']'

ParenthesizedExpression ::= '(' ParenthesizedExpressionEnd { pin=1 }
private ParenthesizedExpressionEnd ::= Expression ')'
Expand Down Expand Up @@ -471,9 +473,10 @@ BuiltinFunctions ::=
private ImageUrlFunction ::= '@image-url' '(' StringLiteral ')' {
pin=2
}
private TranslateFunction ::= '@tr' '(' StringLiteral ')' {
private TranslateFunction ::= '@tr' '(' TranslateArguments ')' {
pin=2
}
private TranslateArguments ::= Expression? (',' (Expression | &']'))* {}
private RadialGradientFunction ::= '@radial-gradient' '(' Expression ',' GradientColorPercentageArgumentList ')' {
pin=2
}
Expand Down

0 comments on commit 676399b

Please sign in to comment.