Skip to content

Commit a6b1d76

Browse files
committed
fixed modifiers
1 parent 1cbd85a commit a6b1d76

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

5-
## [2.0.3] - 2024-01-01
5+
## [2.0.4] - 2024-01-01
66

77
- Go to definition support
88
- Ported to custom parser

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-html-css",
33
"displayName": "HTML CSS Support",
44
"description": "CSS Intellisense for HTML",
5-
"version": "2.0.3",
5+
"version": "2.0.4",
66
"license": "MIT",
77
"publisher": "ecmel",
88
"author": {

src/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import lineColumn from "line-column";
77

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

1111
export const enum StyleType {
1212
ID = "#",

test/suite/extension.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { describe, it } from "mocha";
88
import { CompletionList, Position, commands, workspace } from "vscode";
99

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

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

0 commit comments

Comments
 (0)