oovm / fluent-intellij

Intellij support for Fluent Language
7 stars 0 forks source link

Fluent support in Vue SFC #10

Open hakastein opened 1 year ago

hakastein commented 1 year ago

Can you add Vue SFC support?

https://fluent-vue.demivan.me/introduction.html#example

oovm commented 1 year ago

Which vue plugin do you use? I need to study the injection interface of the other party.

hakastein commented 1 year ago

Budled Vue plugin from jetbrains https://plugins.jetbrains.com/plugin/9442-vue-js

oovm commented 1 year ago

A new version under review.

image

In fact, I injected all the xml nodes whose name is fluent.

Because I have to support the community version, and I don't know how to optionally introduce the element definition of the vue plugin.

oovm commented 1 year ago

There are also some problems with indentation, and the default will be one more level of indentation.

And this indentation level is added outside the tag, I don't know how to modify it.

hakastein commented 1 year ago

Many thx

oovm commented 1 year ago

new version online

morespacemore commented 1 year ago

After updating the plugin, there is an endless "Analyzing..." of the code (PyCharm 2022.3.2 RC)

oovm commented 1 year ago

image

It may be caused by some expired API, I use IntStack to represent indent and dedent, I may need to rewrite Lexer