The Welkin Suite Forum

Reserved word vs field name bug in soql window?



Reserved word vs field name bug in soql window?

  • Please log in to reply

#1
windows version welkinsuite

dave

    Posted 12 Dec 2017 and edited 16 Dec 2017

    Minor bug.. I'm guessing this happens when SFDC has a field name that matches a reserved word. 


    If I have a query that says this..

    SELECT
    	Id,
    	Description,
    	FolderName,
    	Format,
    	Name
    FROM Report
    WHERE Name = '...'

    ...the query works fine but I get a warnng that says "Message: mismatched input ',' expecting '(', position 7 1 1".


    I notice that Format is colored different in the editor. If I remove that field, the warning goes away.



    1 replies to this topic

    #2

    vlgubanovich

      Posted 16 Dec 2017

      Hi Dave,


      Thank you for the bug report.

      Yes, you are right - syntax highlighting is working based on the lexer. It highlights words, taking into account the list of reserved words. At the same time if/when we'll add a parser to the syntax highlighting for SOQL it will take into account the structure of the query and the position of a word when highlighting it with one or another color.

      At the same time the warning that you get should be related with the same reason.


      Thank you,

      Vladimir


      Vladimir Gubanovich
      Head of Product
       
      The Welkin Suite
      skype id: vladimir.gubanovich
      e-mail: vladimir.gubanovich@welkinsuite.com





      Boost Your Productivity. Get Started Today

      Try Free Trial