| OLD | NEW |
| 1 // Copyright (C) 2012 Jeffrey B. Arnold | 1 // Copyright (C) 2012 Jeffrey B. Arnold |
| 2 // | 2 // |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
| 5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
| 6 // | 6 // |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 // | 8 // |
| 9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // builtin symbols | 48 // builtin symbols |
| 49 [PR['PR_LITERAL'], /^(?:NULL|NA(?:_(?:integer|real|complex|character
)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|[0-9]+))(?![A-Za-z0-9_.])/], | 49 [PR['PR_LITERAL'], /^(?:NULL|NA(?:_(?:integer|real|complex|character
)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|[0-9]+))(?![A-Za-z0-9_.])/], |
| 50 // assignment, operators, and parens, etc. | 50 // assignment, operators, and parens, etc. |
| 51 [PR['PR_PUNCTUATION'], /^(?:<<?-|->>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|\*
|\+|\^|\/|!|%.*?%|=|~|\$|@|:{1,3}|[\[\](){};,?])/], | 51 [PR['PR_PUNCTUATION'], /^(?:<<?-|->>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|\*
|\+|\^|\/|!|%.*?%|=|~|\$|@|:{1,3}|[\[\](){};,?])/], |
| 52 // valid variable names | 52 // valid variable names |
| 53 [PR['PR_PLAIN'], /^(?:[A-Za-z]+[A-Za-z0-9_.]*|\.[a-zA-Z_][0-9a-zA-Z\
._]*)(?![A-Za-z0-9_.])/], | 53 [PR['PR_PLAIN'], /^(?:[A-Za-z]+[A-Za-z0-9_.]*|\.[a-zA-Z_][0-9a-zA-Z\
._]*)(?![A-Za-z0-9_.])/], |
| 54 // string backtick | 54 // string backtick |
| 55 [PR['PR_STRING'], /^`.+`/] | 55 [PR['PR_STRING'], /^`.+`/] |
| 56 ]), | 56 ]), |
| 57 ['r', 's', 'R', 'S', 'Splus']); | 57 ['r', 's', 'R', 'S', 'Splus']); |
| OLD | NEW |