Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-2205

Syntax highlighting ignores functions starting with underscore or numbers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.3
    • Component/s: Scripting
    • Labels:
      None

      Description

      According to the tagger script grammar [1]  and the actual implementation a function name can consist of the characters [a-zA-Z0-9_], without restriction on placement.

      Thus the following are all valid function names: $_, $123, $_a, $_1a

      But the syntax highlighting assumes function names must start with [a-zA-Z].

      [1] https://github.com/metabrainz/picard/blob/master/picard/script/parser.py#L202-L212

        Attachments

          Activity

            People

            Assignee:
            outsidecontext Philipp Wolfer
            Reporter:
            outsidecontext Philipp Wolfer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package
                2.6.3