|
51 | 51 |
|
52 | 52 | <scopes> |
53 | 53 | <include syntax="self" collection="comments" /> |
54 | | - <include syntax="self" collection="imports" /> |
55 | 54 | <include syntax="self" collection="definitions" /> |
56 | 55 | <include syntax="self" collection="variables" /> |
57 | 56 | <include syntax="self" collection="functions" /> |
|
99 | 98 | </scope> |
100 | 99 | </collection> |
101 | 100 |
|
102 | | - <!-- !Imports --> |
103 | | - <collection name="imports"> |
104 | | - <scope name="lsl.import"> |
105 | | - <starts-with> |
106 | | - <expression>\b(import)\b</expression> |
107 | | - <capture number="1" name="lsl.keyword.statement.import" /> |
108 | | - </starts-with> |
109 | | - <ends-with /> |
110 | | - <subscopes anchored="true"> |
111 | | - <include syntax="self" collection="comments" optional="true" repeat="true" /> |
112 | | - <include syntax="self" collection="import-references" optional="true" repeat="true" /> |
113 | | - <include syntax="self" collection="comments" optional="true" repeat="true" /> |
114 | | - <include syntax="self" collection="import-paths" /> |
115 | | - </subscopes> |
116 | | - </scope> |
117 | | - </collection> |
118 | | - |
119 | | - <!-- !Import References --> |
120 | | - <collection name="import-references"> |
121 | | - <include syntax="self" collection="comments" optional="true" repeat="true" /> |
122 | | - <scope name="lsl.destructure"> |
123 | | - <starts-with> |
124 | | - <expression>\{</expression> |
125 | | - <capture number="0" name="lsl.destructure.bracket" /> |
126 | | - </starts-with> |
127 | | - <ends-with> |
128 | | - <expression>\}</expression> |
129 | | - <capture number="0" name="lsl.destructure.bracket" /> |
130 | | - </ends-with> |
131 | | - <subscopes> |
132 | | - <cut-off> |
133 | | - <expression>(?=\b(?:static|async|function|class|if|else|while|for)\b)</expression> |
134 | | - </cut-off> |
135 | | - <include syntax="self" collection="comments" /> |
136 | | - <include syntax="self" collection="import-as-expression" /> |
137 | | - <scope name="lsl.identifier"> |
138 | | - <symbol type="variable" scope="external" /> |
139 | | - <expression>(?:\b[a-zA-Z_]|\$)[A-Za-zÀ-ÖØ-öø-ÿŸřŘšŠžŽ0-9_]*</expression> |
140 | | - </scope> |
141 | | - <scope name="lsl.comma"> |
142 | | - <expression>,</expression> |
143 | | - </scope> |
144 | | - </subscopes> |
145 | | - </scope> |
146 | | - <scope name="lsl.keyword.modifier"> |
147 | | - <expression>from</expression> |
148 | | - </scope> |
149 | | - <include syntax="self" collection="import-as-expression" /> |
150 | | - <scope name="lsl.operator.all"> |
151 | | - <expression>\*</expression> |
152 | | - </scope> |
153 | | - <scope name="lsl.identifier"> |
154 | | - <symbol type="variable" scope="external" /> |
155 | | - <expression>(?:\b[a-zA-Z_]|\$)[A-Za-zÀ-ÖØ-öø-ÿŸřŘšŠžŽ0-9_]*</expression> |
156 | | - </scope> |
157 | | - <scope name="lsl.comma"> |
158 | | - <expression>,</expression> |
159 | | - </scope> |
160 | | - </collection> |
161 | | - |
162 | | - <!-- !Import As Expression --> |
163 | | - <collection name="import-as-expression"> |
164 | | - <scope name="lsl.import-as-expression"> |
165 | | - <starts-with> |
166 | | - <expression>(?:(?:\b[a-zA-Z_]|\$)[A-Za-zÀ-ÖØ-öø-ÿŸřŘšŠžŽ0-9_]*|(\*))(?=\s+(?:as)\b)</expression> |
167 | | - <capture number="1" name="lsl.operator" /> |
168 | | - </starts-with> |
169 | | - <ends-with /> |
170 | | - <subscopes anchored="true"> |
171 | | - <scope name="lsl.keyword.modifier"> |
172 | | - <expression>\b(as)\b</expression> |
173 | | - </scope> |
174 | | - <include syntax="self" collection="comments" optional="true" repeat="true" /> |
175 | | - <scope name="lsl.identifier"> |
176 | | - <symbol type="variable" scope="external" /> |
177 | | - <expression>(?:\b[a-zA-Z_]|\$)[A-Za-zÀ-ÖØ-öø-ÿŸřŘšŠžŽ0-9_]*</expression> |
178 | | - </scope> |
179 | | - </subscopes> |
180 | | - </scope> |
181 | | - </collection> |
182 | | - |
183 | | - <!-- !Import Paths --> |
184 | | - <collection name="import-paths"> |
185 | | - <scope name="lsl.string.double-quoted.path"> |
186 | | - <starts-with> |
187 | | - <expression>"</expression> |
188 | | - <capture number="0" name="lsl.string.double-quoted.path.delimiter" /> |
189 | | - </starts-with> |
190 | | - <ends-with> |
191 | | - <expression>"|(?:(?<!\\)$)</expression> |
192 | | - <capture number="0" name="lsl.string.double-quoted.path.delimiter" /> |
193 | | - </ends-with> |
194 | | - <subscopes> |
195 | | - <scope name="lsl.string.double-quoted.path.escape"> |
196 | | - <expression>\\(?:\\|"|n|r|t|b|f)</expression> |
197 | | - </scope> |
198 | | - </subscopes> |
199 | | - </scope> |
200 | | - <scope name="lsl.string.single-quoted.path"> |
201 | | - <starts-with> |
202 | | - <expression>'</expression> |
203 | | - <capture number="0" name="lsl.string.single-quoted.path.delimiter" /> |
204 | | - </starts-with> |
205 | | - <ends-with> |
206 | | - <expression>'|(?:(?<!\\)$)</expression> |
207 | | - <capture number="0" name="lsl.string.single-quoted.path.delimiter" /> |
208 | | - </ends-with> |
209 | | - <subscopes> |
210 | | - <scope name="lsl.string.single-quoted.path.escape"> |
211 | | - <expression>\\(?:\\|'|n|r|t|b|f)</expression> |
212 | | - </scope> |
213 | | - </subscopes> |
214 | | - </scope> |
215 | | - </collection> |
216 | | - |
217 | 101 | <!-- !Definitions --> |
218 | 102 | <collection name="definitions"> |
219 | | - <scope name="lsl.definition.class"> |
220 | | - <symbol type="class"> |
221 | | - <context behavior="subtree" foldable="false" /> |
222 | | - </symbol> |
223 | | - <starts-with> |
224 | | - <expression>\b(class)\s+([a-zA-Z_\$][A-Za-zÀ-ÖØ-öø-ÿŸřŘšŠžŽ0-9_]*)\b</expression> |
225 | | - <capture number="1" name="lsl.keyword.construct.class" /> |
226 | | - <capture number="2" name="lsl.identifier.type.class.name" /> |
227 | | - </starts-with> |
228 | | - <ends-with /> |
229 | | - <subscopes anchored="true"> |
230 | | - <include syntax="self" collection="comments" optional="true" repeat="true" /> |
231 | | - <scope name="lsl.class.extends" optional="true"> |
232 | | - <expression>\b(extends)\s+([a-zA-Z_\$][A-Za-zÀ-ÖØ-öø-ÿŸřŘšŠžŽ0-9_\.]*)</expression> |
233 | | - <capture number="1" name="lsl.keyword.modifier.extends" /> |
234 | | - <capture number="2" name="lsl.identifier.type.class.superclass" /> |
235 | | - </scope> |
236 | | - <include syntax="self" collection="comments" optional="true" repeat="true" /> |
237 | | - <scope name="lsl.block"> |
238 | | - <symbol type="block"> |
239 | | - <context behavior="subtree" fold-type="class" /> |
240 | | - </symbol> |
241 | | - <starts-with> |
242 | | - <expression>\{</expression> |
243 | | - <capture number="0" name="lsl.bracket" /> |
244 | | - </starts-with> |
245 | | - <ends-with> |
246 | | - <expression>\}</expression> |
247 | | - <capture number="0" name="lsl.bracket" /> |
248 | | - </ends-with> |
249 | | - <subscopes> |
250 | | - <include syntax="self" collection="comments" /> |
251 | | - <include syntax="self" collection="properties" /> |
252 | | - <include syntax="self" collection="methods" /> |
253 | | - <scope name="lsl.keyword.modifier"> |
254 | | - <strings> |
255 | | - <string>static</string> |
256 | | - <string>async</string> |
257 | | - <string>get</string> |
258 | | - <string>set</string> |
259 | | - </strings> |
260 | | - </scope> |
261 | | - </subscopes> |
262 | | - </scope> |
263 | | - </subscopes> |
264 | | - </scope> |
| 103 | + |
265 | 104 | </collection> |
266 | 105 |
|
267 | 106 | <!-- !Variables --> |
|
2842 | 2681 | <strings> |
2843 | 2682 | <string>TOUCH_INVALID_TEXCOORD</string> |
2844 | 2683 | <string>TOUCH_INVALID_VECTOR</string> |
| 2684 | + <string>ZERO_ROTATION</string> |
2845 | 2685 | <string>ZERO_VECTOR</string> |
2846 | 2686 | </strings> |
2847 | 2687 | </scope> |
2848 | | - <scope name="lsl.identifier.constant.vector"> |
| 2688 | + <scope name="lsl.identifier.constant.integer.ossl"> |
2849 | 2689 | <strings> |
2850 | | - <string>ZERO_ROTATION</string> |
| 2690 | + <string>AGENT_LIST_EXCLUDENPC</string> |
| 2691 | + <string>CAMERA_FOCUS_OFFSET_X</string> |
| 2692 | + <string>CAMERA_FOCUS_OFFSET_Y</string> |
| 2693 | + <string>CAMERA_FOCUS_OFFSET_Z</string> |
| 2694 | + <string>CAMERA_FOCUS_X</string> |
| 2695 | + <string>CAMERA_FOCUS_Y</string> |
| 2696 | + <string>CAMERA_FOCUS_Z</string> |
| 2697 | + <string>CAMERA_POSITION_X</string> |
| 2698 | + <string>CAMERA_POSITION_Y</string> |
| 2699 | + <string>CAMERA_POSITION_Z</string> |
| 2700 | + <string>CHANGED_ANIMATION</string> |
| 2701 | + <string>DATA_SIM_RELEASE</string> |
| 2702 | + <string>LIST_STAT_HARMONIC_MEAN</string> |
| 2703 | + <string>LSL_STATUS_BOUNDS_ERROR</string> |
| 2704 | + <string>LSL_STATUS_INTERNAL_ERROR</string> |
| 2705 | + <string>LSL_STATUS_MALFORMED_PARAMS</string> |
| 2706 | + <string>LSL_STATUS_NOT_FOUND</string> |
| 2707 | + <string>LSL_STATUS_NOT_SUPPORTED</string> |
| 2708 | + <string>LSL_STATUS_OK</string> |
| 2709 | + <string>LSL_STATUS_TYPE_MISMATCH</string> |
| 2710 | + <string>LSL_STATUS_WHITELIST_FAILED</string> |
| 2711 | + <string>OS_APIVERSION</string> |
| 2712 | + <string>OS_ATTACH_MSG_ALL</string> |
| 2713 | + <string>OS_ATTACH_MSG_INVERT_POINTS</string> |
| 2714 | + <string>OS_ATTACH_MSG_OBJECT_CREATOR</string> |
| 2715 | + <string>OS_ATTACH_MSG_SCRIPT_CREATOR</string> |
| 2716 | + <string>OS_LISTEN_REGEX_MESSAGE</string> |
| 2717 | + <string>OS_LISTEN_REGEX_NAME</string> |
| 2718 | + <string>OS_LTPAG_ALGNLV</string> |
| 2719 | + <string>OS_LTPAG_FORCEFLY</string> |
| 2720 | + <string>OS_LTPAG_FORCENOFLY</string> |
| 2721 | + <string>OS_LTPAG_NONE</string> |
| 2722 | + <string>OS_LTPAG_USELOOKAT</string> |
| 2723 | + <string>OS_LTPAG_USEVEL</string> |
| 2724 | + <string>OS_NPC_CREATOR_OWNED</string> |
| 2725 | + <string>OS_NPC_FLY</string> |
| 2726 | + <string>OS_NPC_LAND_AT_TARGET</string> |
| 2727 | + <string>OS_NPC_NO_FLY</string> |
| 2728 | + <string>OS_NPC_NOT_OWNED</string> |
| 2729 | + <string>OS_NPC_OBJECT_GROUP</string> |
| 2730 | + <string>OS_NPC_RUNNING</string> |
| 2731 | + <string>OS_NPC_SENSE_AS_AGENT</string> |
| 2732 | + <string>OS_NPC_SIT_NOW</string> |
| 2733 | + <string>OSTPOBJ_NONE</string> |
| 2734 | + <string>OSTPOBJ_SETROT</string> |
| 2735 | + <string>OSTPOBJ_STOPATTARGET</string> |
| 2736 | + <string>OSTPOBJ_STOPONFAIL</string> |
| 2737 | + <string>PARCEL_DETAILS_CLAIMDATE</string> |
| 2738 | + <string>PARCEL_DETAILS_DWELL</string> |
| 2739 | + <string>RC_REJECT_HOST</string> |
| 2740 | + <string>RC_REJECT_HOSTGROUP</string> |
| 2741 | + <string>STATS_ACTIVE_PRIMS</string> |
| 2742 | + <string>STATS_ACTIVE_SCRIPTS</string> |
| 2743 | + <string>STATS_AGENT_MS</string> |
| 2744 | + <string>STATS_AGENT_UPDATES</string> |
| 2745 | + <string>STATS_CHILD_AGENTS</string> |
| 2746 | + <string>STATS_FRAME_MS</string> |
| 2747 | + <string>STATS_IMAGE_MS</string> |
| 2748 | + <string>STATS_IN_PACKETS_PER_SECOND</string> |
| 2749 | + <string>STATS_NET_MS</string> |
| 2750 | + <string>STATS_OTHER_MS</string> |
| 2751 | + <string>STATS_OUT_PACKETS_PER_SECOND</string> |
| 2752 | + <string>STATS_PENDING_DOWNLOADS</string> |
| 2753 | + <string>STATS_PENDING_UPLOADS</string> |
| 2754 | + <string>STATS_PHYSICS_FPS</string> |
| 2755 | + <string>STATS_PHYSICS_MS</string> |
| 2756 | + <string>STATS_ROOT_AGENTS</string> |
| 2757 | + <string>STATS_SCRIPT_LPS</string> |
| 2758 | + <string>STATS_SIM_FPS</string> |
| 2759 | + <string>STATS_TIME_DILATION</string> |
| 2760 | + <string>STATS_TOTAL_PRIMS</string> |
| 2761 | + <string>STATS_UNACKED_BYTES</string> |
| 2762 | + <string>VEHICLE_FLAG_LOCK_HOVER_HEIGHT</string> |
| 2763 | + <string>VEHICLE_FLAG_LOCK_ROTATION</string> |
| 2764 | + <string>VEHICLE_FLAG_NO_DEFLECTION</string> |
| 2765 | + <string>VEHICLE_FLAG_NO_X</string> |
| 2766 | + <string>VEHICLE_FLAG_NO_Y</string> |
| 2767 | + <string>VEHICLE_FLAG_NO_Z</string> |
| 2768 | + <string>VEHICLE_RANGE_BLOCK</string> |
| 2769 | + <string>VEHICLE_ROLL_FRAME</string> |
| 2770 | + </strings> |
| 2771 | + </scope> |
| 2772 | + <scope name="lsl.identifier.constant.integer.ossl.windlight"> |
| 2773 | + <strings> |
| 2774 | + <string>WL_AMBIENT</string> |
| 2775 | + <string>WL_BIG_WAVE_DIRECTION</string> |
| 2776 | + <string>WL_BLUE_DENSITY</string> |
| 2777 | + <string>WL_BLUR_MULTIPLIER</string> |
| 2778 | + <string>WL_CLOUD_COLOR</string> |
| 2779 | + <string>WL_CLOUD_COVERAGE</string> |
| 2780 | + <string>WL_CLOUD_DETAIL_XY_DENSITY</string> |
| 2781 | + <string>WL_CLOUD_SCALE</string> |
| 2782 | + <string>WL_CLOUD_SCROLL_X</string> |
| 2783 | + <string>WL_CLOUD_SCROLL_X_LOCK</string> |
| 2784 | + <string>WL_CLOUD_SCROLL_Y</string> |
| 2785 | + <string>WL_CLOUD_SCROLL_Y_LOCK</string> |
| 2786 | + <string>WL_CLOUD_XY_DENSITY</string> |
| 2787 | + <string>WL_DENSITY_MULTIPLIER</string> |
| 2788 | + <string>WL_DISTANCE_MULTIPLIER</string> |
| 2789 | + <string>WL_DRAW_CLASSIC_CLOUDS</string> |
| 2790 | + <string>WL_EAST_ANGLE</string> |
| 2791 | + <string>WL_FRESNEL_OFFSET</string> |
| 2792 | + <string>WL_FRESNEL_SCALE</string> |
| 2793 | + <string>WL_HAZE_DENSITY</string> |
| 2794 | + <string>WL_HAZE_HORIZON</string> |
| 2795 | + <string>WL_HORIZON</string> |
| 2796 | + <string>WL_LITTLE_WAVE_DIRECTION</string> |
| 2797 | + <string>WL_MAX_ALTITUDE</string> |
| 2798 | + <string>WL_NORMAL_MAP_TEXTURE</string> |
| 2799 | + <string>WL_REFLECTION_WAVELET_SCALE</string> |
| 2800 | + <string>WL_REFRACT_SCALE_ABOVE</string> |
| 2801 | + <string>WL_REFRACT_SCALE_BELOW</string> |
| 2802 | + <string>WL_SCENE_GAMMA</string> |
| 2803 | + <string>WL_STAR_BRIGHTNESS</string> |
| 2804 | + <string>WL_SUN_GLOW_FOCUS</string> |
| 2805 | + <string>WL_SUN_GLOW_SIZE</string> |
| 2806 | + <string>WL_SUN_MOON_COLOR</string> |
| 2807 | + <string>WL_SUN_MOON_POSITION</string> |
| 2808 | + <string>WL_UNDERWATER_FOG_MODIFIER</string> |
| 2809 | + <string>WL_WATER_COLOR</string> |
| 2810 | + <string>WL_WATER_FOG_DENSITY_EXPONENT</string> |
| 2811 | + </strings> |
| 2812 | + </scope> |
| 2813 | + <scope name="lsl.identifier.constant.integer.ossl"> |
| 2814 | + <strings> |
| 2815 | + <string>IMG_USE_BAKED_AUX1</string> |
| 2816 | + <string>IMG_USE_BAKED_AUX2</string> |
| 2817 | + <string>IMG_USE_BAKED_AUX3</string> |
| 2818 | + <string>IMG_USE_BAKED_EYES</string> |
| 2819 | + <string>IMG_USE_BAKED_HAIR</string> |
| 2820 | + <string>IMG_USE_BAKED_LEFTARM</string> |
| 2821 | + <string>IMG_USE_BAKED_LEFTLEG</string> |
| 2822 | + <string>IMG_USE_BAKED_LOWER</string> |
| 2823 | + <string>IMG_USE_BAKED_SKIRT</string> |
| 2824 | + <string>IMG_USE_BAKED_UPPER</string> |
| 2825 | + <string>IMG_USE_BAKED_HEAD</string> |
2851 | 2826 | </strings> |
2852 | 2827 | </scope> |
2853 | 2828 | <scope name="lsl.identifier"> |
|
0 commit comments