OLD | NEW |
1 // Copyright (C) 2011 Martin S. | 1 // Copyright (C) 2011 Martin S. |
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 26 matching lines...) Expand all Loading... |
37 [PR['PR_KEYWORD'], /^\\./], | 37 [PR['PR_KEYWORD'], /^\\./], |
38 // Highlight dollar for math mode and ampersam for tabular | 38 // Highlight dollar for math mode and ampersam for tabular |
39 [PR['PR_TYPE'], /^[$&]/], | 39 [PR['PR_TYPE'], /^[$&]/], |
40 // numeric measurement values with attached units | 40 // numeric measurement values with attached units |
41 [PR['PR_LITERAL'], | 41 [PR['PR_LITERAL'], |
42 /[+-]?(?:\.\d+|\d+(?:\.\d*)?)(cm|em|ex|in|pc|pt|bp|mm)/i], | 42 /[+-]?(?:\.\d+|\d+(?:\.\d*)?)(cm|em|ex|in|pc|pt|bp|mm)/i], |
43 // punctuation usually occurring within commands | 43 // punctuation usually occurring within commands |
44 [PR['PR_PUNCTUATION'], /^[{}()\[\]=]+/] | 44 [PR['PR_PUNCTUATION'], /^[{}()\[\]=]+/] |
45 ]), | 45 ]), |
46 ['latex', 'tex']); | 46 ['latex', 'tex']); |
OLD | NEW |