- Updated highlights.scm to improve CSS, HTML, and data attribute captures with higher priority. - Added a new Lua function to display highlight group and color information under the cursor. - Expanded editor, semantic, syntax, and TreeSitter highlight groups for better visual consistency across languages. - Created test files for PHP, HTML, CSS, and Lua to validate syntax highlighting. - Implemented a shell script to test semantic highlights in a Neovim session. - Simplified colorscheme loading process by removing unnecessary plugin specifications.
37 lines
636 B
PHP
37 lines
636 B
PHP
<?php
|
|
// PHP should be primary brownish-red
|
|
function test_function($param) {
|
|
$variable = "string value";
|
|
return $variable;
|
|
}
|
|
|
|
$result = test_function("test");
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!-- HTML should be blue (c3) -->
|
|
<style>
|
|
/* CSS should be green (c2) */
|
|
.my-class {
|
|
color: red;
|
|
background: blue;
|
|
}
|
|
|
|
#my-id {
|
|
font-size: 16px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="my-class" id="my-id">
|
|
<p>Hello World</p>
|
|
</div>
|
|
|
|
<?php
|
|
// Back to PHP (primary)
|
|
echo "Mixed content";
|
|
?>
|
|
</body>
|
|
</html>
|