components/vim/patches/7197223.patch
author Rich Burridge <rich.burridge@oracle.com>
Tue, 02 May 2017 17:33:26 -0700
changeset 7964 d9801318ed3d
parent 7049 e8d705cba87d
permissions -rw-r--r--
25981468 Build ilmbase and openexr with the GNU compilers
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7049
e8d705cba87d 24676533 vim 8.0.0016
Danek Duvall <danek.duvall@oracle.com>
parents: 983
diff changeset
     1
--- a/runtime/syntax/dtrace.vim	Thu Sep 13 09:27:02 2012
e8d705cba87d 24676533 vim 8.0.0016
Danek Duvall <danek.duvall@oracle.com>
parents: 983
diff changeset
     2
+++ b/runtime/syntax/dtrace.vim	Thu Sep 13 09:27:15 2012
e8d705cba87d 24676533 vim 8.0.0016
Danek Duvall <danek.duvall@oracle.com>
parents: 983
diff changeset
     3
@@ -35,8 +35,8 @@
983
8cd8254141e2 7197223 vim shows high CPU usage when editing dtrace script with syntax highlighting enabled
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     4
 " XXX: This allows a probe description to end with ',', even if it's not
8cd8254141e2 7197223 vim shows high CPU usage when editing dtrace script with syntax highlighting enabled
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     5
 " followed by another probe.
8cd8254141e2 7197223 vim shows high CPU usage when editing dtrace script with syntax highlighting enabled
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     6
 " XXX: This doesn't work if followed by a comment.
8cd8254141e2 7197223 vim shows high CPU usage when editing dtrace script with syntax highlighting enabled
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     7
-let s:oneProbe = '\%(BEGIN\|END\|ERROR\|\S\{-}:\S\{-}:\S\{-}:\S\{-}\)\_s*'
8cd8254141e2 7197223 vim shows high CPU usage when editing dtrace script with syntax highlighting enabled
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     8
-exec 'syn match dtraceProbe "'.s:oneProbe.'\%(,\_s*'.s:oneProbe.'\)*\ze\_s\%({\|\/[^*]\|\%$\)"'
8cd8254141e2 7197223 vim shows high CPU usage when editing dtrace script with syntax highlighting enabled
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     9
+let s:oneProbe = '\%(BEGIN\|END\|ERROR\|\S\{-}:\S\{-}:\S\{-}:\S*\)\_s*'
8cd8254141e2 7197223 vim shows high CPU usage when editing dtrace script with syntax highlighting enabled
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    10
+exec 'syn match dtraceProbe "'.s:oneProbe.'\%(,\_s*'.s:oneProbe.'\)*\ze\_s*\%({\|\/[^*]\|\_s*\S\|\%$\)"'
8cd8254141e2 7197223 vim shows high CPU usage when editing dtrace script with syntax highlighting enabled
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    11
 
8cd8254141e2 7197223 vim shows high CPU usage when editing dtrace script with syntax highlighting enabled
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    12
 " Note: We have to be careful to not make this match /* */ comments.
8cd8254141e2 7197223 vim shows high CPU usage when editing dtrace script with syntax highlighting enabled
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    13
 " Also be careful not to eat `c = a / b; b = a / 2;`. We use the same