vscode-glua-enhanced icon indicating copy to clipboard operation
vscode-glua-enhanced copied to clipboard

Multi-line finction definition are not color coded

Open dvdvideo1234 opened this issue 2 years ago • 2 comments

Hi,

Consider the following:

  function LaserLib.NewLaser(user       , pos         , ang         , model      ,
                             trandata   , key         , width       , length     ,
                             damage     , material    , dissolveType, startSound ,
                             stopSound  , killSound   , runToggle   , startOn    ,
                             pushForce  , endingEffect, reflectRate , refractRate,
                             forceCenter, frozen      , enOverMater , enSafeBeam , rayColor )

when a closing bracket is placed on the first line we have: image

dvdvideo1234 avatar Oct 01 '23 18:10 dvdvideo1234

when a closing bracket is placed on the first line we have:

I don't understand, the extra closing bracket creates a syntax error and closes the function definition, it can't colour past that.

WilliamVenner avatar Oct 01 '23 18:10 WilliamVenner

The function is not colored in the first case when the syntax is correct, but colored when syntax is incorrect ( below ) only the first line

dvdvideo1234 avatar Oct 01 '23 19:10 dvdvideo1234