izhangzhihao / intellij-rainbow-brackets

🌈Rainbow Brackets for IntelliJ based IDEs/Android Studio/HUAWEI DevEco Studio/Fleet
https://plugins.jetbrains.com/plugin/10080-rainbow-brackets
GNU General Public License v3.0
4.45k stars 213 forks source link

Failed to rainbowify tag name in .tsx files #2740

Closed nanlan2017 closed 4 months ago

nanlan2017 commented 4 months ago

Have you checked the issues and discussions to ensure there are no duplicates?

Yes

Your programming languages

Typescript, Vue

Free or paid?

Paid users

Expected Behavior

I checked 'rainbowify tag name' and has customized colors for angle brackets, It works as expected in .vue files, but in .tsx files, the bracket '<>' and the tag name are in different colors. Is .tsx supported? rainbow-set-1 rainbow-set-2 rainbow-custom

Current Behavior

rainbow-problem

Code snippet for reproduce

.tsx file: export default defineComponent({ name: 'loginBanner', setup() { return () => (

  <div>
    <div>
      <div>
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>
                      dsdfdssd
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
)

} })

Your Environment

WebStorm 2024.1 Build #WS-241.14494.235, built on March 27, 2024 Licensed to json yin Subscription is active until March 8, 2025. For educational use only. Runtime version: 17.0.10+8-b1207.12 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 14.5 GC: G1 Young Generation, G1 Old Generation Memory: 4096M Cores: 16 Metal Rendering is ON Registry: eslint.additional.file.extensions=svelte Non-Bundled Plugins: MultiHighlight (3.1.0) com.nasller.CodeGlancePro (1.8.3-241) com.myoutdesk.tailwind_formatter (2.0.10) com.amazon.codewhisperer.jetbrains (1.0.3) com.mallowigi.imageicon (14.0.0) com.wakatime.intellij.plugin (14.3.13) com.laravel_idea.tailwind (1.4.2) com.clutcher.comments_highlighter (2024.1.15) com.vlnabatov.alabaster (1.0.76) tv.twelvetone.intellij.plugins.intellivue (1.2.0) com.shen.plugin.element (2.0) izhangzhihao.rainbow.brackets (2024.2.3-241)

izhangzhihao commented 4 months ago

Pls try the latest version(an update already got published)