New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color Issues #111

Closed
iammenasco opened this Issue Jul 31, 2014 · 7 comments

Comments

Projects
None yet
2 participants
@iammenasco

iammenasco commented Jul 31, 2014

Looking for more customization of xQuery in color schemes.

Example: declare function test($argument as xs:string) {
let $variable := $argument
}

Should be able to uniquely color 'test()', '$argument', 'xs:string', and '$variable'

@ligasgr

This comment has been minimized.

Show comment
Hide comment
@ligasgr

ligasgr Jul 31, 2014

Owner

Hi,

Thanks for raising the issue!
Just to be clear... Are you talking about adding colours for for function name in declaration, variable name in declaration, function call, variable call, etc. ?
Would you be able to list all the cases that you are interested in?

Owner

ligasgr commented Jul 31, 2014

Hi,

Thanks for raising the issue!
Just to be clear... Are you talking about adding colours for for function name in declaration, variable name in declaration, function call, variable call, etc. ?
Would you be able to list all the cases that you are interested in?

@ligasgr ligasgr added the enhancement label Jul 31, 2014

@iammenasco

This comment has been minimized.

Show comment
Hide comment
@iammenasco

iammenasco Aug 1, 2014

Correct. So far it is just those 4 that I have come across, with the addition to changing the color of a namespaced variable.

iammenasco commented Aug 1, 2014

Correct. So far it is just those 4 that I have come across, with the addition to changing the color of a namespaced variable.

@ligasgr

This comment has been minimized.

Show comment
Hide comment
@ligasgr

ligasgr Aug 1, 2014

Owner

Can you please give an example of what you mean by namespaced variable and example from another language highlighting that would be similar in terms of colour scheme?

Owner

ligasgr commented Aug 1, 2014

Can you please give an example of what you mean by namespaced variable and example from another language highlighting that would be similar in terms of colour scheme?

@iammenasco

This comment has been minimized.

Show comment
Hide comment
@iammenasco

iammenasco Aug 5, 2014

In WebStorm, JavaScipt is a pretty good example of this highlighting. If you select parameter, local variable, global variable, and global function the correct color options show up.

Let me find a good example of a namespaced variable. I already lost my previous example.

iammenasco commented Aug 5, 2014

In WebStorm, JavaScipt is a pretty good example of this highlighting. If you select parameter, local variable, global variable, and global function the correct color options show up.

Let me find a good example of a namespaced variable. I already lost my previous example.

@iammenasco

This comment has been minimized.

Show comment
Hide comment
@iammenasco

iammenasco Aug 11, 2014

As a namespaced variable, if you declare some type of global variable such as $global:language vs. just $language.

iammenasco commented Aug 11, 2014

As a namespaced variable, if you declare some type of global variable such as $global:language vs. just $language.

@ligasgr

This comment has been minimized.

Show comment
Hide comment
@ligasgr

ligasgr Aug 12, 2014

Owner

In the following example which ones do you think would fall under the category which you're refering to as namespaced variable? And would only declarations or also references be couloured?

module namespace example = "example.xq";

declare default function namespace "example.xq";

declare variable $example:var1 := 'var1';
declare variable $var2 := 'var2';

declare function example:fun($example:par1) {
    let $example:local1 := 'local1'
    let $local2 := $example:var1
    let $local3 := $var1
    let $local3 := $example:var2
    let $local4 := $var2
    let $local5 := $example:par1
    let $local6 := $par1
    return $local6
};

Sorry for asking again but I want to fully understand that concept.
As you can see with marklogic flavour of xquery the example above is a valid one and has a huge number of combinations:

  • declared with namespace prefix, refered to with namespace prefix
  • declared with namespace prefix, refered to without namespace prefix
  • declared without namespace prefix, refered to with namespace prefix
  • declared without namespace prefix, refered to without namespace prefix
    and all of them apply to global vars, local vars and parameters. Most of the cases apply not only to marklogic flavour.

Thanks!

Owner

ligasgr commented Aug 12, 2014

In the following example which ones do you think would fall under the category which you're refering to as namespaced variable? And would only declarations or also references be couloured?

module namespace example = "example.xq";

declare default function namespace "example.xq";

declare variable $example:var1 := 'var1';
declare variable $var2 := 'var2';

declare function example:fun($example:par1) {
    let $example:local1 := 'local1'
    let $local2 := $example:var1
    let $local3 := $var1
    let $local3 := $example:var2
    let $local4 := $var2
    let $local5 := $example:par1
    let $local6 := $par1
    return $local6
};

Sorry for asking again but I want to fully understand that concept.
As you can see with marklogic flavour of xquery the example above is a valid one and has a huge number of combinations:

  • declared with namespace prefix, refered to with namespace prefix
  • declared with namespace prefix, refered to without namespace prefix
  • declared without namespace prefix, refered to with namespace prefix
  • declared without namespace prefix, refered to without namespace prefix
    and all of them apply to global vars, local vars and parameters. Most of the cases apply not only to marklogic flavour.

Thanks!

@iammenasco

This comment has been minimized.

Show comment
Hide comment
@iammenasco

iammenasco Aug 15, 2014

$example:var1, and $example:var2. I am sure others might use various examples, but the one I am personally referring to is declared with namespace prefix, refered to with namespace prefix.

iammenasco commented Aug 15, 2014

$example:var1, and $example:var2. I am sure others might use various examples, but the one I am personally referring to is declared with namespace prefix, refered to with namespace prefix.

@ligasgr ligasgr closed this in 44193f2 Sep 7, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment