Skip to content

Commit

Permalink
Fix @tr syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
kizeevov committed Nov 22, 2024
1 parent 67517eb commit 492baf3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

### Fixed

- Fixed `ActionUpdateThread.OLD_EDT` error ([issue](https://github.com/kizeevov/slint-idea-plugin/issues/61))
- Fixed `ActionUpdateThread.OLD_EDT` error ([issue 61](https://github.com/kizeevov/slint-idea-plugin/issues/61))
- Fixed @tr syntax ([issue 65](https://github.com/kizeevov/slint-idea-plugin/issues/65))

## [1.2.0] - 2024-07-30

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ pluginGroup = dev.slint
pluginName = SlintPlugin
pluginVersion = 1.3.0
platformType = IU
platformVersion = 2024.3
pluginSinceBuild = 242
platformVersion = 2024.1
pluginSinceBuild = 241
pluginUntilBuild =
platformPlugins =
jvmVersion = 17
Expand Down
4 changes: 4 additions & 0 deletions src/main/grammars/SlintParser.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -466,10 +466,14 @@ BuiltinFunctions ::=
| RadialGradientFunction
| LinearGradientFunction
| ChildrenFunction
| TranslateFunction

private ImageUrlFunction ::= '@image-url' '(' StringLiteral ')' {
pin=2
}
private TranslateFunction ::= '@tr' '(' StringLiteral ')' {
pin=2
}
private RadialGradientFunction ::= '@radial-gradient' '(' Expression ',' GradientColorPercentageArgumentList ')' {
pin=2
}
Expand Down

0 comments on commit 492baf3

Please sign in to comment.