Skip to content

Commit

Permalink
fixed modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
ecmel committed Jan 1, 2024
1 parent 1cbd85a commit a6b1d76
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

All notable changes to the extension will be documented in this file.

## [2.0.3] - 2024-01-01
## [2.0.4] - 2024-01-01

- Go to definition support
- Ported to custom parser
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-html-css",
"displayName": "HTML CSS Support",
"description": "CSS Intellisense for HTML",
"version": "2.0.3",
"version": "2.0.4",
"license": "MIT",
"publisher": "ecmel",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import lineColumn from "line-column";

const regex =
/([.#])(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)(?=[\s,.#_a-zA-Z0-9-]*{[^}]*})/g;
/([.#])(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)(?=[\s:,.#_a-zA-Z0-9-]*{[^}]*})/g;

export const enum StyleType {
ID = "#",
Expand Down
4 changes: 2 additions & 2 deletions test/suite/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { describe, it } from "mocha";
import { CompletionList, Position, commands, workspace } from "vscode";

describe("extension", () => {
it("should suggest completion for html class tags", async () => {
it("should suggest completion for html class attributes", async () => {
const document = await workspace.openTextDocument({
language: "html",
content: "<style>.selector{}</style>\n<a class='selecto'></a>",
Expand All @@ -23,7 +23,7 @@ describe("extension", () => {
assert.ok(list.items.find((item) => item.label === "selector"));
});

it("should suggest completion for html id tags", async () => {
it("should suggest completion for html id attributes", async () => {
const document = await workspace.openTextDocument({
language: "html",
content: "<style>#selector{}</style>\n<a id='selecto'></a>",
Expand Down

0 comments on commit a6b1d76

Please sign in to comment.