Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emmet has parse error when using p(lorem10) #59172

Closed
xjl456852 opened this issue Sep 23, 2018 · 4 comments
Closed

emmet has parse error when using p(lorem10) #59172

xjl456852 opened this issue Sep 23, 2018 · 4 comments
Assignees
Labels
emmet Emmet related issues *out-of-scope Posted issue is not in scope of VS Code upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@xjl456852
Copy link

Issue Type: Bug

When I use emmet to parse expression, it doesn't parse properly .
expression:
table.table-row[role='table']>(thead>tr>td{item $@120}5)+(tbody>tr>(td.item$$@-)lorem105)

I try it in sublime text 3 use emmet , It can be parse correctly

VS Code version: Code 1.27.2 (f46c4c4, 2018-09-12T16:17:45.060Z)
OS version: Windows_NT x64 10.0.17134

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2592)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 15.82GB (10.64GB free)
Process Argv D:\soft\Microsoft VS Code\Code.exe
Screen Reader no
VM 40%
Extensions (3)
Extension Author (truncated) Version
vscode-language-pack-zh-hans MS- 1.27.2
LiveServer rit 5.1.1
livereload zee 0.1.1
@ramya-rao-a ramya-rao-a self-assigned this Sep 24, 2018
@ramya-rao-a ramya-rao-a added the emmet Emmet related issues label Sep 24, 2018
@ramya-rao-a
Copy link
Contributor

In https://docs.emmet.io/ that expands to

<table class="table-row" role="table">
    	<thead>
    		<tr>
    			<td>item 120</td>
    		</tr>
    	</thead>
    	<tbody>
    		<tr>
    			<td class="item01">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore voluptatum nobis nostrum labore mollitia dignissimos officia molestias nisi non asperiores. Ipsa labore sunt perferendis voluptas reprehenderit, repellat quis vel expedita natus ex dolore aspernatur id veritatis exercitationem quo suscipit nisi aliquid aperiam accusantium totam quibusdam, fugiat debitis adipisci quod. Sit nihil cupiditate asperiores reiciendis cumque, ducimus quaerat sapiente officiis, dolorem saepe aperiam laudantium at! Fugit optio illum, itaque laborum expedita nesciunt eos debitis minima. Sapiente, itaque delectus eligendi at repellendus impedit possimus magni modi et necessitatibus repudiandae voluptates tempora rem, corrupti maxime culpa vel quae incidunt, quam, temporibus vitae autem. Ab, dolore in illum nulla!</td></tr>
    	</tbody>
    </table>

Is that the expected output?

@ramya-rao-a ramya-rao-a added the info-needed Issue requires more information from poster label Sep 27, 2018
@xjl456852
Copy link
Author

Sorry the expression is error. May be the browser disabled the asterisk symbol
this expression is rigth:
table.table-row[role='table']>(thead>tr>td{item $@120}5)+(tbody&gt;tr&gt;(td.item$$@-)lorem105)
look image url :
https://ibb.co/mKnGu9

the expected to look image url :
https://ibb.co/nCJQMp

@ramya-rao-a
Copy link
Contributor

table.table-row[role='table']>(thead>tr>td{item $@120}*5)+(tbody>tr>td.item$$@-*5>lorem10) expands to what you would expect

The reason is that (p)lorem10 is a valid syntax as per https://docs.emmet.io/ and the old emmet.
VS Code uses the new emmet modules where it is not valid. But p>lorem10 is valid.

I have logged an upstream issue in emmet. emmetio/expand-abbreviation#24

@ramya-rao-a ramya-rao-a added upstream Issue identified as 'upstream' component related (exists outside of VS Code) and removed info-needed Issue requires more information from poster labels Sep 27, 2018
@ramya-rao-a ramya-rao-a assigned octref and unassigned ramya-rao-a Nov 19, 2018
@ramya-rao-a ramya-rao-a changed the title emmet has parse error emmet has parse error when using p(lorem10) Nov 19, 2018
@rzhao271
Copy link
Contributor

rzhao271 commented Oct 9, 2020

I'm closing this issue because currently other text editors also use p>lorem10 instead of (p)lorem10.

@rzhao271 rzhao271 closed this as completed Oct 9, 2020
@rzhao271 rzhao271 added wont-fix *out-of-scope Posted issue is not in scope of VS Code and removed wont-fix labels Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emmet Emmet related issues *out-of-scope Posted issue is not in scope of VS Code upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants