diff --git a/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/script/JSPartitionScanner.java b/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/script/JSPartitionScanner.java index 741beda551..479748d3b7 100644 --- a/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/script/JSPartitionScanner.java +++ b/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/script/JSPartitionScanner.java @@ -176,7 +176,11 @@ protected void addWords(WordRule rule, String[] tokens, IToken token) { * syntax highlights */ private void fetchJSCommonObjectsMethods() { + this.globalObjectTokens.add("_jsContext"); //$NON-NLS-1$ + this.globalObjectTokens.add("_statusHandle"); //$NON-NLS-1$ + this.globalObjectTokens.add("report"); //$NON-NLS-1$ this.globalObjectTokens.add("reportContext"); //$NON-NLS-1$ + this.globalObjectTokens.add("config"); //$NON-NLS-1$ this.globalObjectTokens.add("params"); //$NON-NLS-1$ this.globalObjectTokens.add("vars"); //$NON-NLS-1$ this.globalObjectTokens.add("row"); //$NON-NLS-1$ @@ -190,6 +194,7 @@ private void fetchJSCommonObjectsMethods() { this.keywordMethods.add("value"); //$NON-NLS-1$ this.keywordMethods.add("data"); //$NON-NLS-1$ this.keywordMethods.add("displayText"); //$NON-NLS-1$ + this.keywordMethods.add("currentPage"); //$NON-NLS-1$ this.keywordMethods.add("pageNumber"); //$NON-NLS-1$ this.keywordMethods.add("totalPage"); //$NON-NLS-1$