diff --git a/src/Languages/Css/CssLanguage.php b/src/Languages/Css/CssLanguage.php
index 5b424f0..18e4acf 100644
--- a/src/Languages/Css/CssLanguage.php
+++ b/src/Languages/Css/CssLanguage.php
@@ -8,6 +8,7 @@
use Tempest\Highlight\Languages\Css\Patterns\CssAttributePattern;
use Tempest\Highlight\Languages\Css\Patterns\CssCommentPattern;
use Tempest\Highlight\Languages\Css\Patterns\CssFunctionPattern;
+use Tempest\Highlight\Languages\Css\Patterns\CssImportPattern;
use Tempest\Highlight\Languages\Css\Patterns\CssMediaQueryPattern;
use Tempest\Highlight\Languages\Css\Patterns\CssSelectorPattern;
use Tempest\Highlight\Languages\Css\Patterns\CssVariablePattern;
@@ -31,6 +32,7 @@ public function getPatterns(): array
return [
...parent::getPatterns(),
new CssMediaQueryPattern(),
+ new CssImportPattern(),
new CssCommentPattern(),
new CssSelectorPattern(),
new CssAttributePattern(),
diff --git a/src/Languages/Css/Patterns/CssImportPattern.php b/src/Languages/Css/Patterns/CssImportPattern.php
new file mode 100644
index 0000000..d0221cd
--- /dev/null
+++ b/src/Languages/Css/Patterns/CssImportPattern.php
@@ -0,0 +1,26 @@
+\@import)';
+ }
+
+ public function getTokenType(): TokenTypeEnum
+ {
+ return TokenTypeEnum::KEYWORD;
+ }
+}
diff --git a/tests/Languages/Css/CssLanguageTest.php b/tests/Languages/Css/CssLanguageTest.php
index 929b513..db75ad8 100644
--- a/tests/Languages/Css/CssLanguageTest.php
+++ b/tests/Languages/Css/CssLanguageTest.php
@@ -39,6 +39,8 @@ public static function data(): array
}
TXT,
],
+ ['linear-gradient(', 'linear-gradient('],
+ ['@import "foo.css"', '@import "foo.css"'],
];
}
}
diff --git a/tests/targets/test.md b/tests/targets/test.md
index dac35e3..719b941 100644
--- a/tests/targets/test.md
+++ b/tests/targets/test.md
@@ -1,11 +1,3 @@
```css
-.reveal .code-wrapper code {
- line-height: 150%;
-
- background:
-
- linear-gradient(
- white 30%,
- rgba(255, 255, 255, 0)
- ) center top,
+@import "../../vendor/tempest/highlight/src/Themes/highlight-light-lite.css";
```
\ No newline at end of file