Skip to content

Commit

Permalink
Merge pull request #48 from pustota-theme/scss-support
Browse files Browse the repository at this point in the history
SCSS support
  • Loading branch information
igor-gorohovsky authored Jan 23, 2025
2 parents e253785 + 25d1e33 commit 398a00d
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ A clean, minimalist Neovim colorscheme inspired by the original [pustota VSCode
- HTML
- PHP
- CSS
- SCSS
- C
- C++
- C#
Expand Down
19 changes: 19 additions & 0 deletions after/queries/scss/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
;; extends

((class_selector (".") @type.delimiter))

((pseudo_class_selector (":") @type.delimiter))

((pseudo_element_selector ("::") @type.delimiter))

((id_selector) @type.delimiter)

((color_value) @color)

((unit) @unit)

((mixin_statement (name) @function.definition))

((if_clause ("@if") @keyword))
((else_if_clause ("if") @keyword))
((else_if_clause ("@else") @keyword))
17 changes: 17 additions & 0 deletions lua/pustota.lua
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,23 @@ M.hl_langs = function()

-- Solidity specific
hl(0, "@constructor.solidity", { link = "Keyword" })

-- SCSS specific
hl(0, "@property.scss", { fg = colors.gray })
hl(0, "@function.scss", { fg = colors.gray })
hl(0, "@function.definition.scss", { link = "Function" })
hl(0, "@string.scss", { fg = colors.gray })

hl(0, "@attribute.scss", { link = "Function" })
hl(0, "@tag.attribute.scss", { link = "Function" })
hl(0, "@constant.scss", { link = "Function" })
hl(0, "@tag.scss", { link = "Type" })
hl(0, "@color.scss", { link = "Constant" })
hl(0, "@unit.scss", { link = "Keyword" })

hl(0, "@type.scss", { link = "Function" })
hl(0, "@type.delimiter.scss", { link = "Function" })
hl(0, "@punctuation.delimiter.scss", {})
end

local highlight = function()
Expand Down

0 comments on commit 398a00d

Please sign in to comment.