ITADN

Mixed lowercase/uppercase causing no tokenization

#4048Closedcyfung1031 创建于 2025-12-06
C
cyfung1031commented
**Information:** - Prism version: latest - Plugins: N/A - Environment: browser **Description** https://prismjs.com/test#language=javascript&text=%20%20const%20VAR_ABC%20%3D%20false%3B%0A%20%20const%20VAR_def%20%3D%20false%3B <img width="952" height="514" alt="Image" src="https://github.com/user-attachments/assets/d7b3004e-19c1-428d-9070-59eddaa3fcf6" /> My script use mixed uppercase and lowercase for variable naming. Now "VAR_ABC" is token as constant and "VAR_def" is not token. I hope there is setting to make them both not token OR both token as constant, to avoid the color difference.
关闭于 2025-12-15 3 条评论