Bug 532247 - parser failure using shorthand method calls using colon
Summary: parser failure using shorthand method calls using colon
Status: UNCONFIRMED
Alias: None
Product: LDT
Classification: Tools
Component: LuaDevelopmentTools (show other bugs)
Version: 1.4.0   Edit
Hardware: PC Linux
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-09 10:11 EST by Missing name CLA
Modified: 2018-03-09 10:11 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Missing name CLA 2018-03-09 10:11:41 EST
LUA manual states in section 2.5.8:

 The form

	functioncall ::= prefixexp `:ยด Name args

can be used to call "methods". A call v:name(args) is syntactic sugar for v.name(v,args), except that v is evaluated only once.

This form procudes the following error in LDT:

unexpected symbol near ':'

Example code:

do
    local test = 'test'
    local teststring = 'This is a test string: %s':format(test)
end