octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #58945] Octave parser allows keyword 'end' as


From: Rik
Subject: [Octave-bug-tracker] [bug #58945] Octave parser allows keyword 'end' as a function parameter
Date: Fri, 14 Aug 2020 14:31:45 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #2, bug #58945 (project octave):

Yes, in m-code one could just call


iskeyword (PARAMETER_NAME)


to verify the PARAMETER_NAME before continuing parsing.

The C function octave::iskeyword in lex.ll is available so I don't think it
should be hard to add the check.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58945>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]