Skip to content

Commit

Permalink
Fix issue #9
Browse files Browse the repository at this point in the history
  • Loading branch information
Ecmel Ercan authored and Ecmel Ercan committed Oct 29, 2016
1 parent ec9efad commit d33a1e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ CSS support for HTML documents.

## Features

- Style tag completion and hover.
- Style attribute completion and hover.
- Id attribute completion.
- Class attribute completion.
Expand Down
12 changes: 6 additions & 6 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ class Snippet {
class StyleServer implements vsc.CompletionItemProvider, vsc.HoverProvider {

private regex = [
/style=["|']([^"^']*$)/i,
/<style[^\<\s\S]*\>([^\<]*)/i
/style=["|']([^"^']*$)/i //,
// /<style[^\<\s\S]*\>([^\<]*)/i
];

private convertCompletionList(list: lst.CompletionList): vsc.CompletionList {
Expand All @@ -70,10 +70,10 @@ class StyleServer implements vsc.CompletionItemProvider, vsc.HoverProvider {
return new Snippet('.c {\n' + tag[1], position.character);
}

tag = this.regex[1].exec(text);
if (tag) {
return new Snippet(tag[1], position.character);
}
// tag = this.regex[1].exec(text);
// if (tag) {
// return new Snippet(tag[1], position.character);
// }

return null;
}
Expand Down

0 comments on commit d33a1e4

Please sign in to comment.