Skip to content

React components not being highlighted #7

@Amar-Gill

Description

@Amar-Gill

First of all, I want to say great work on this plugin. I tried numerous themes and I settled on this one for it's balance of legibility and coherent aesthetic.

The issue I'm having is that React components are not highlighted the same way standard html tags are:

Screen Shot 2022-09-10 at 10 31 06 PM

These are React components imported like so

  import { OrbitControls } from '@react-three/drei';
  import { Canvas } from '@react-three/fiber';
  import Head from 'next/head';

It appears as if they are using the monochrome palette. I have tree-sitter installed also.

I'll try to dig into code and make a fix but want to document this issue as a start.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions