This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
default (black) color in such cases: #pragma omp taskloop untied #pragma omp taskloop mergeable #pragma omp taskloop nogroup #pragma omp taskloop priority(1) #pragma omp taskloop num_tasks(32) #pragma omp taskloop grainsize(10) "final" has blue color. See example from https://docs.oracle.com/cd/E24457_01/html/E21996/glmpw.html : #include <stdio.h> #include <omp.h> #define THRESHOLD 5 int fib(int n) { int i, j; if (n<2) return n; #pragma omp task shared(i) firstprivate(n) final(n <= THRESHOLD) i=fib(n-1); #pragma omp task shared(j) firstprivate(n) final(n <= THRESHOLD) j=fib(n-2); #pragma omp taskwait return i+j; } int main() { int n = 30; omp_set_dynamic(0); omp_set_num_threads(4); #pragma omp parallel shared(n) { #pragma omp single printf ("fib(%d) = %d\n", n, fib(n)); } }
Other unrecognized code: #pragma omp taskloop final(arr[0] == 5) grainsize(10)
Created attachment 163232 [details] proposed patch
fixed in enum, branch release82, changeset 3e4ce68fe114
Integrated into 'main-silver', will be available in build *201704020002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/9924245fcee5 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #269306 IDE doesn't highlight some new OpenMP keywords (transplanted from 3e4ce68fe114f44f65a89101eea67cb197233a53)
https://netbeans.org/bugzilla/show_bug.cgi?id=269306 Changesets: http://hg.netbeans.org/releases/rev/3e4ce68fe114 # fixed Bug #269306 IDE doesn't highlight some new OpenMP keywords
Verified in NetBeans IDE 8.2 (Build 201704181436)