Skip to content

Lua auto indent bug #63407

@gbin10533

Description

@gbin10533

Issue Type: Bug

In Lua, when comment contains "function", like:
-- blah blah function
then type Enter, the next line will auto indent for one tab, but it shoud not auto indent.

VS Code version: Code - OSS 1.27.2 (f46c4c4, 2018-09-14T00:41:55.375Z)
OS version: Linux x64 4.18.16-arch1-1-ARCH

System Info
Item Value
CPUs Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 1005)
GPU Status 2d_canvas: unavailable_software
checker_imaging: disabled_off
flash_3d: unavailable_software
flash_stage3d: unavailable_software
flash_stage3d_baseline: unavailable_software
gpu_compositing: unavailable_software
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: unavailable_software
video_decode: unavailable_software
video_encode: unavailable_software
webgl: enabled_readback
webgl2: unavailable_off
Load (avg) 1, 0, 0
Memory (System) 7.70GB (4.29GB free)
Process Argv /usr/lib/code/code.js
Screen Reader no
VM 0%
Extensions (5)
Extension Author (truncated) Version
vscode-language-pack-zh-hans MS- 1.27.2
python ms- 2018.10.1
cpptools ms- 0.20.1
Go ms- 0.7.0
markdown-all-in-one yzh 1.7.0

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions