mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-06 10:44:24 +08:00
@@ -94,6 +94,7 @@ function! emmet#lang#html#parseIntoTree(abbr, type) abort
|
||||
let abbr = rabbr
|
||||
|
||||
let root = emmet#newNode()
|
||||
let root['variables'] = {}
|
||||
let parent = root
|
||||
let last = root
|
||||
let pos = []
|
||||
@@ -257,9 +258,11 @@ function! emmet#lang#html#parseIntoTree(abbr, type) abort
|
||||
endif
|
||||
if item[0] ==# '#'
|
||||
let current.attr.id = item[1:]
|
||||
let root['variables']['id'] = current.attr.id
|
||||
endif
|
||||
if item[0] ==# '.'
|
||||
let current.attr.class = substitute(item[1:], '\.', ' ', 'g')
|
||||
let root['variables']['class'] = current.attr.class
|
||||
endif
|
||||
if item[0] ==# '['
|
||||
let atts = item[1:-2]
|
||||
|
||||
Reference in New Issue
Block a user