Menu

#1628 User keywords for sql properties doesn't seem to work

Bug
closed-works-for-me
sql (10)
5
2014-09-30
2014-07-27
klo
No

This is part from default "sql.properties" file:

# Keywords5: User Keywords 1
style.sql.19=fore:#4B0082
# Keywords6: User Keywords 2
style.sql.20=fore:#B00040
# Keywords7: User Keywords 3
style.sql.21=fore:#8B0000
# Keywords8: User Keywords 4
style.sql.22=fore:#800080


# User keywords 1
# Keywords for Standard packages
keywords5.$(file.patterns.sql)=\
dbms_output.disable dbms_output.enable dbms_output.get_line \
dbms_output.get_lines dbms_output.new_line dbms_output.put \
dbms_output.put_line \

Keywords defined in keyword5 don't have the style as defined (fore:#4B0082).
Neither have following keyword6, keyword7, keyword8

They simply aren't styled.

Same applies to keywords3, while keywords from keyword4 surprisingly are styled.

Discussion

  • klo

    klo - 2014-07-27

    .. while keywords from keyword4 surprisingly are styled.

    In "sql.properties" keyword4 is defined for "$(file.patterns.sql)"

    I defined my own file pattern with:

    file.patterns.pgsql=*.pgsql
    lexer.$(file.patterns.pgsql)=sql
    

    Interestingly, if I try to define "keyword4.$(file.patterns.pgsql)" and type a keyword in "test.pgsql" file, then keyword is not highlighted. While for file patterns "$(file.patterns.sql)" and "$(file.patterns.plsql)" it works!

    How can this be if this is not hardcoded in sql lexer source, which would be bad?
    I guess I could have made a mistake myself, but where?

     
    • Neil Hodgson

      Neil Hodgson - 2014-07-27

      Works for me with keywords5.$(file.patterns.sql)=xxx.

       
  • klo

    klo - 2014-07-28

    Here is link to image in attachment: http://i.imgur.com/dxpkZfo.png

    This is official SciTE 3.4 as it comes from download page.

     
  • Neil Hodgson

    Neil Hodgson - 2014-08-05

    You should examine all the settings.

     
  • Neil Hodgson

    Neil Hodgson - 2014-08-14
    • labels: --> sql
    • status: open --> open-works-for-me
    • assigned_to: Neil Hodgson
     
  • Neil Hodgson

    Neil Hodgson - 2014-09-30
    • status: open-works-for-me --> closed-works-for-me
     

Log in to post a comment.

MongoDB Logo MongoDB