Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

language support for SQR

Help
Anonymous
2012-08-04
2013-06-12

  • Anonymous
    2012-08-04

    I am noob. ( i may have posted in multiple forum )
    but i needed to get started to add any line starting with begin-procedure
    I tried export one language rename name and extension then import it.
    and then delete all tag type and add new with many combination  but does not work what i am doing wrong?

    eg.
    begin-procedure process_sponsor    ! should list  process_sponsor
    or
    begin-procedure process_employee($empid, #toempid)  !should list process_employee and $empid, #toempid as parameter.

     
  • UFO
    UFO
    2012-08-20

    Hi,
    which regular expressions did you try?
    Please at least post something that can be fixed.
    Or upload your language settings file somwhere.

     

  • Anonymous
    2012-08-28

    I was able to create needed rules for SQR.
    if you wan to add below is my exported file output

    <?xml version="1.0" encoding="utf-8"?>
    <SerializableDictionaryOfStringLanguage>
      <item>
        <key>
          <string>SQR</string>
        </key>
        <value>
          <Language xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
            <BuildIn>false</BuildIn>
            <Extensions>
              <string>.sqr</string>
              <string>.sqc</string>
            </Extensions>
            <DisplayAccess>false</DisplayAccess>
            <DisplayReturnType>false</DisplayReturnType>
            <DisplayScope>false</DisplayScope>
            <DisplaySignature>false</DisplaySignature>
            <CaseSensitive>false</CaseSensitive>
            <ScopeOperator>.</ScopeOperator>
            <TagTypes>
              <item>
                <key>
                  <string>l</string>
                </key>
                <value>
                  <TagType>
                    <Description>[Label]</Description>
                    <BuildIn>false</BuildIn>
                    <RegexPatterns>
                      <string>/^([^[:space:]]]*)([^,:;[:space:]\(\"]+?):[[:space:]]*$/\1\2/l/ei</string>
                    </RegexPatterns>
                    <Show>true</Show>
                    <TrackCaret>false</TrackCaret>
                    <IconFilename>php_named_html_elements.png</IconFilename>
                    <ForeColor>-16777216</ForeColor>
                  </TagType>
                </value>
              </item>
              <item>
                <key>
                  <string>p</string>
                </key>
                <value>
                  <TagType>
                    <Description>proc with argument [p]</Description>
                    <BuildIn>false</BuildIn>
                    <RegexPatterns>
                      <string>/^begin-procedure*([[:alnum:]_]+)[[:blank:]]+(\w)([[:blank:]]*[(]+[[\w[:blank:],]*[)]+)/\2&#x2;access:\1&#x2;signature:\3/p/ei</string>
                    </RegexPatterns>
                    <Show>true</Show>
                    <TrackCaret>false</TrackCaret>
                    <IconFilename>asm_struct.png</IconFilename>
                    <ForeColor>-16777216</ForeColor>
                  </TagType>
                </value>
              </item>
              <item>
                <key>
                  <string>a</string>
                </key>
                <value>
                  <TagType>
                    <Description>Procedure [p]</Description>
                    <BuildIn>false</BuildIn>
                    <RegexPatterns>
                      <string>/^begin-procedure[[:blank:]+]([[:alnum:]_]+)/\1/a/ei</string>
                      <string>/^begin-procedure[[:blank:]+]([[:alnum:]_]+)[[:blank:]+](*)/\1&#x2;access:\1&#x2;signature:\2/a/ei</string>
                    </RegexPatterns>
                    <Show>true</Show>
                    <TrackCaret>false</TrackCaret>
                    <IconFilename>asm_proc.png</IconFilename>
                    <ForeColor>-16777216</ForeColor>
                  </TagType>
                </value>
              </item>
              <item>
                <key>
                  <string>f</string>
                </key>
                <value>
                  <TagType>
                    <Description>[Function]</Description>
                    <BuildIn>false</BuildIn>
                    <RegexPatterns>
                      <string>/^(\w{3,})[[:space:]]*(\(.*\))[[:space:]]*/\1&#x2;signature:\2/f/ei</string>
                    </RegexPatterns>
                    <Show>true</Show>
                    <TrackCaret>true</TrackCaret>
                    <IconFilename>python_function.png</IconFilename>
                    <ForeColor>-16772364</ForeColor>
                  </TagType>
                </value>
              </item>
              <item>
                <key>
                  <string>s</string>
                </key>
                <value>
                  <TagType>
                    <Description>[Hotstring]</Description>
                    <BuildIn>false</BuildIn>
                    <RegexPatterns>
                      <string>/^:[^[:space:]]*:([^[:space:]]+)::(.{1,5})/\1__(\2...)/s/ei</string>
                    </RegexPatterns>
                    <Show>true</Show>
                    <TrackCaret>false</TrackCaret>
                    <IconFilename>php_text_elements.png</IconFilename>
                    <ForeColor>-16777216</ForeColor>
                  </TagType>
                </value>
              </item>
              <item>
                <key>
                  <string>k</string>
                </key>
                <value>
                  <TagType>
                    <Description>[Hotkey]</Description>
                    <BuildIn>false</BuildIn>
                    <RegexPatterns>
                      <string>/^([^,;:]+)\:\:/\1/k/ei</string>
                    </RegexPatterns>
                    <Show>true</Show>
                    <TrackCaret>false</TrackCaret>
                    <IconFilename>rc_accelerator.png</IconFilename>
                    <ForeColor>-16777216</ForeColor>
                  </TagType>
                </value>
              </item>
            </TagTypes>
          </Language>
        </value>
      </item>
    </SerializableDictionaryOfStringLanguage>
    
     
  • UFO
    UFO
    2012-09-09

    Thx for the rules, I'll include them next time!
    cheers