New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: C/C++: Highlight the import files #461
Comments
@bobbylight thanks |
@bobbylight, there are still some problems. // contains /
#include <sys/types.h>
// contains -
#include <gnu/libc-version.h>
// contains multiple spaces between # and include
// contains multiple spaces between include and <
# include <stdio.h>
# include <math.h> I think the correct expression should be In addition, is there a way to highlight the import file? like // highlight the java.util.ArrayList
import java.util.ArrayList; |
Thanks, I've addressed the whitespace and As for your second question, are you asking for a way to highlight the imported file a different color than the surrounding |
@bobbylight thanks, Specify package name color // like include
// highlight the 'com.xxx.package_name'
package com.xxx.package_name;
// highlight the 'com.xxx.class_name'
import com.xxx.class_name; |
Description
the
CPlusPlusTokenMaker.flex
andCTokenMaker.flex
can't parse header files correctly.like this: <xxx.h>
Expected behavior
Can correctly highlight header files.
like this:
Java version
openjdk-17
Additional context
I can't fix this as I'm not familiar with the
Jflex
syntax.see the cpp.flex
Pseudo code:
The text was updated successfully, but these errors were encountered: