Closed iammenasco closed 10 years ago
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?
Correct. So far it is just those 4 that I have come across, with the addition to changing the color of a namespaced variable.
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?
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.
As a namespaced variable, if you declare some type of global variable such as $global:language vs. just $language.
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:
Thanks!
$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.
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'