Updated default script
This commit is contained in:
parent
29f0541966
commit
9f740a15df
@ -82,7 +82,7 @@
|
|||||||
|
|
||||||
.ace_tb {
|
.ace_tb {
|
||||||
&.ace_tbel-utils-func {
|
&.ace_tbel-utils-func {
|
||||||
color: #0000A2;
|
color: rgb(49, 132, 149);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -131,7 +131,7 @@ export const tbelUtilsAutocompletes = new TbEditorCompleter({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'radix',
|
name: 'radix',
|
||||||
description: 'The radix for parsing (e.g., 2 for binary, 16 for hex). If omitted, it is auto-detected (e.g., 0x for hex).',
|
description: 'The radix for parsing (e.g., 2 for binary, 16 for hex). Defaults to auto-detected (e.g., 0x for hex).',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
optional: true
|
optional: true
|
||||||
}
|
}
|
||||||
@ -152,7 +152,7 @@ export const tbelUtilsAutocompletes = new TbEditorCompleter({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'radix',
|
name: 'radix',
|
||||||
description: 'The radix for parsing (e.g., 2 for binary, 16 for hex). If omitted, it is auto-detected (e.g., 0x for hex).',
|
description: 'The radix for parsing (e.g., 2 for binary, 16 for hex). Defaults to auto-detected (e.g., 0x for hex).',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
optional: true
|
optional: true
|
||||||
}
|
}
|
||||||
@ -768,7 +768,7 @@ export const tbelUtilsAutocompletes = new TbEditorCompleter({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'radix',
|
name: 'radix',
|
||||||
description: 'The radix for conversion (e.g., 2 for binary, 16 for hex). If omitted, it defaults to 10.',
|
description: 'The radix for conversion (e.g., 2 for binary, 16 for hex). Defaults to 10.',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
optional: true
|
optional: true
|
||||||
},
|
},
|
||||||
@ -1229,7 +1229,22 @@ export const tbelUtilsAutocompletes = new TbEditorCompleter({
|
|||||||
description: 'The parsed integer',
|
description: 'The parsed integer',
|
||||||
type: 'number'
|
type: 'number'
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
isNaN: {
|
||||||
|
meta: 'function',
|
||||||
|
description: 'Checks if the given number is NaN (Not a Number).',
|
||||||
|
args: [
|
||||||
|
{
|
||||||
|
name: 'value',
|
||||||
|
description: 'The number to check',
|
||||||
|
type: 'number'
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
return: {
|
||||||
|
description: 'True if the number is NaN, false otherwise',
|
||||||
|
type: 'boolean'
|
||||||
|
}
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const tbelUtilsFuncNames = [
|
const tbelUtilsFuncNames = [
|
||||||
@ -1292,7 +1307,8 @@ const tbelUtilsFuncNames = [
|
|||||||
"parseByteToBinaryArray",
|
"parseByteToBinaryArray",
|
||||||
"parseBytesToBinaryArray",
|
"parseBytesToBinaryArray",
|
||||||
"parseLongToBinaryArray",
|
"parseLongToBinaryArray",
|
||||||
"parseBinaryArrayToInt"
|
"parseBinaryArrayToInt",
|
||||||
|
"isNaN",
|
||||||
];
|
];
|
||||||
|
|
||||||
export const tbelUtilsFuncHighlightRules: Array<AceHighlightRule> =
|
export const tbelUtilsFuncHighlightRules: Array<AceHighlightRule> =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user