matlab.py 130 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313
  1. """
  2. pygments.lexers.matlab
  3. ~~~~~~~~~~~~~~~~~~~~~~
  4. Lexers for Matlab and related languages.
  5. :copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
  6. :license: BSD, see LICENSE for details.
  7. """
  8. import re
  9. from pygments.lexer import Lexer, RegexLexer, bygroups, default, words, \
  10. do_insertions, include
  11. from pygments.token import Text, Comment, Operator, Keyword, Name, String, \
  12. Number, Punctuation, Generic, Whitespace
  13. from pygments.lexers import _scilab_builtins
  14. __all__ = ['MatlabLexer', 'MatlabSessionLexer', 'OctaveLexer', 'ScilabLexer']
  15. # The function-definition signature, shared by the Matlab, Octave and Scilab
  16. # lexers (which all use the same syntax). Tokenised incrementally rather than
  17. # with a single regex so that a `...` line continuation may appear anywhere in
  18. # the signature, which is valid in all three languages.
  19. _deffunc = [
  20. (r'[ \t]+', Whitespace),
  21. (r'\.\.\..*?\n', Comment), # line continuation
  22. # output argument(s): `[a, b] =` (may span continuations) or `y =`
  23. (r'(\[)([^\]]*)(\])([ \t]*)(=)',
  24. bygroups(Punctuation, Text, Punctuation, Whitespace, Punctuation)),
  25. (r'([a-zA-Z_]\w*)([ \t]*)(=)(?!=)',
  26. bygroups(Text, Whitespace, Punctuation)),
  27. (r'[a-zA-Z_]\w*', Name.Function), # function name
  28. (r'\(', Punctuation, 'deffunc_args'),
  29. (r'\n', Whitespace, '#pop'), # end of a no-argument-list signature
  30. default('#pop'),
  31. ]
  32. _deffunc_args = [
  33. (r'\.\.\..*?\n', Comment), # line continuation
  34. (r'\)', Punctuation, '#pop:2'),
  35. (r'[^)\n.]+', Text),
  36. (r'[.\n]', Text),
  37. ]
  38. class MatlabLexer(RegexLexer):
  39. """
  40. For Matlab source code.
  41. """
  42. name = 'Matlab'
  43. aliases = ['matlab']
  44. filenames = ['*.m']
  45. mimetypes = ['text/matlab']
  46. url = 'https://www.mathworks.com/products/matlab.html'
  47. version_added = '0.10'
  48. _operators = r'-|==|~=|<=|>=|<|>|&&|&|~|\|\|?|\.\*|\*|\+|\.\^|\^|\.\\|\./|/|\\'
  49. tokens = {
  50. 'expressions': [
  51. # operators:
  52. (_operators, Operator),
  53. # numbers (must come before punctuation to handle `.5`; cannot use
  54. # `\b` due to e.g. `5. + .5`). The negative lookahead on operators
  55. # avoids including the dot in `1./x` (the dot is part of `./`).
  56. (rf'(?<!\w)((\d+\.\d+)|(\d*\.\d+)|(\d+\.(?!{_operators})))'
  57. r'([eEf][+-]?\d+)?(?!\w)', Number.Float),
  58. (r'\b\d+[eEf][+-]?[0-9]+\b', Number.Float),
  59. (r'\b\d+\b', Number.Integer),
  60. # punctuation:
  61. (r'\[|\]|\(|\)|\{|\}|:|@|\.|,', Punctuation),
  62. (r'=|:|;', Punctuation),
  63. # quote can be transpose, instead of string:
  64. # (not great, but handles common cases...)
  65. (r'(?<=[\w)\].])\'+', Operator),
  66. (r'"(""|[^"])*"', String),
  67. (r'(?<![\w)\].])\'', String, 'string'),
  68. (r'[a-zA-Z_]\w*', Name),
  69. (r'\s+', Whitespace),
  70. (r'.', Text),
  71. ],
  72. 'root': [
  73. # line starting with '!' is sent as a system command. not sure what
  74. # label to use...
  75. (r'^!.*', String.Other),
  76. (r'%\{\s*\n', Comment.Multiline, 'blockcomment'),
  77. (r'%.*$', Comment),
  78. (r'(\s*^\s*)(function)\b', bygroups(Whitespace, Keyword), 'deffunc'),
  79. (r'(\s*^\s*)(properties)(\s+)(\()',
  80. bygroups(Whitespace, Keyword, Whitespace, Punctuation),
  81. ('defprops', 'propattrs')),
  82. (r'(\s*^\s*)(properties)\b',
  83. bygroups(Whitespace, Keyword), 'defprops'),
  84. # from 'iskeyword' on version 9.4 (R2018a):
  85. # Check that there is no preceding dot, as keywords are valid field
  86. # names.
  87. (words(('break', 'case', 'catch', 'classdef', 'continue',
  88. 'dynamicprops', 'else', 'elseif', 'end', 'for', 'function',
  89. 'global', 'if', 'methods', 'otherwise', 'parfor',
  90. 'persistent', 'return', 'spmd', 'switch',
  91. 'try', 'while'),
  92. prefix=r'(?<!\.)(\s*)(', suffix=r')\b'),
  93. bygroups(Whitespace, Keyword)),
  94. (
  95. words(
  96. [
  97. # See https://mathworks.com/help/matlab/referencelist.html
  98. # Below data from 2021-02-10T18:24:08Z
  99. # for Matlab release R2020b
  100. "BeginInvoke",
  101. "COM",
  102. "Combine",
  103. "CombinedDatastore",
  104. "EndInvoke",
  105. "Execute",
  106. "FactoryGroup",
  107. "FactorySetting",
  108. "Feval",
  109. "FunctionTestCase",
  110. "GetCharArray",
  111. "GetFullMatrix",
  112. "GetVariable",
  113. "GetWorkspaceData",
  114. "GraphPlot",
  115. "H5.close",
  116. "H5.garbage_collect",
  117. "H5.get_libversion",
  118. "H5.open",
  119. "H5.set_free_list_limits",
  120. "H5A.close",
  121. "H5A.create",
  122. "H5A.delete",
  123. "H5A.get_info",
  124. "H5A.get_name",
  125. "H5A.get_space",
  126. "H5A.get_type",
  127. "H5A.iterate",
  128. "H5A.open",
  129. "H5A.open_by_idx",
  130. "H5A.open_by_name",
  131. "H5A.read",
  132. "H5A.write",
  133. "H5D.close",
  134. "H5D.create",
  135. "H5D.get_access_plist",
  136. "H5D.get_create_plist",
  137. "H5D.get_offset",
  138. "H5D.get_space",
  139. "H5D.get_space_status",
  140. "H5D.get_storage_size",
  141. "H5D.get_type",
  142. "H5D.open",
  143. "H5D.read",
  144. "H5D.set_extent",
  145. "H5D.vlen_get_buf_size",
  146. "H5D.write",
  147. "H5DS.attach_scale",
  148. "H5DS.detach_scale",
  149. "H5DS.get_label",
  150. "H5DS.get_num_scales",
  151. "H5DS.get_scale_name",
  152. "H5DS.is_scale",
  153. "H5DS.iterate_scales",
  154. "H5DS.set_label",
  155. "H5DS.set_scale",
  156. "H5E.clear",
  157. "H5E.get_major",
  158. "H5E.get_minor",
  159. "H5E.walk",
  160. "H5F.close",
  161. "H5F.create",
  162. "H5F.flush",
  163. "H5F.get_access_plist",
  164. "H5F.get_create_plist",
  165. "H5F.get_filesize",
  166. "H5F.get_freespace",
  167. "H5F.get_info",
  168. "H5F.get_mdc_config",
  169. "H5F.get_mdc_hit_rate",
  170. "H5F.get_mdc_size",
  171. "H5F.get_name",
  172. "H5F.get_obj_count",
  173. "H5F.get_obj_ids",
  174. "H5F.is_hdf5",
  175. "H5F.mount",
  176. "H5F.open",
  177. "H5F.reopen",
  178. "H5F.set_mdc_config",
  179. "H5F.unmount",
  180. "H5G.close",
  181. "H5G.create",
  182. "H5G.get_info",
  183. "H5G.open",
  184. "H5I.dec_ref",
  185. "H5I.get_file_id",
  186. "H5I.get_name",
  187. "H5I.get_ref",
  188. "H5I.get_type",
  189. "H5I.inc_ref",
  190. "H5I.is_valid",
  191. "H5L.copy",
  192. "H5L.create_external",
  193. "H5L.create_hard",
  194. "H5L.create_soft",
  195. "H5L.delete",
  196. "H5L.exists",
  197. "H5L.get_info",
  198. "H5L.get_name_by_idx",
  199. "H5L.get_val",
  200. "H5L.iterate",
  201. "H5L.iterate_by_name",
  202. "H5L.move",
  203. "H5L.visit",
  204. "H5L.visit_by_name",
  205. "H5ML.compare_values",
  206. "H5ML.get_constant_names",
  207. "H5ML.get_constant_value",
  208. "H5ML.get_function_names",
  209. "H5ML.get_mem_datatype",
  210. "H5O.close",
  211. "H5O.copy",
  212. "H5O.get_comment",
  213. "H5O.get_comment_by_name",
  214. "H5O.get_info",
  215. "H5O.link",
  216. "H5O.open",
  217. "H5O.open_by_idx",
  218. "H5O.set_comment",
  219. "H5O.set_comment_by_name",
  220. "H5O.visit",
  221. "H5O.visit_by_name",
  222. "H5P.all_filters_avail",
  223. "H5P.close",
  224. "H5P.close_class",
  225. "H5P.copy",
  226. "H5P.create",
  227. "H5P.equal",
  228. "H5P.exist",
  229. "H5P.fill_value_defined",
  230. "H5P.get",
  231. "H5P.get_alignment",
  232. "H5P.get_alloc_time",
  233. "H5P.get_attr_creation_order",
  234. "H5P.get_attr_phase_change",
  235. "H5P.get_btree_ratios",
  236. "H5P.get_char_encoding",
  237. "H5P.get_chunk",
  238. "H5P.get_chunk_cache",
  239. "H5P.get_class",
  240. "H5P.get_class_name",
  241. "H5P.get_class_parent",
  242. "H5P.get_copy_object",
  243. "H5P.get_create_intermediate_group",
  244. "H5P.get_driver",
  245. "H5P.get_edc_check",
  246. "H5P.get_external",
  247. "H5P.get_external_count",
  248. "H5P.get_family_offset",
  249. "H5P.get_fapl_core",
  250. "H5P.get_fapl_family",
  251. "H5P.get_fapl_multi",
  252. "H5P.get_fclose_degree",
  253. "H5P.get_fill_time",
  254. "H5P.get_fill_value",
  255. "H5P.get_filter",
  256. "H5P.get_filter_by_id",
  257. "H5P.get_gc_references",
  258. "H5P.get_hyper_vector_size",
  259. "H5P.get_istore_k",
  260. "H5P.get_layout",
  261. "H5P.get_libver_bounds",
  262. "H5P.get_link_creation_order",
  263. "H5P.get_link_phase_change",
  264. "H5P.get_mdc_config",
  265. "H5P.get_meta_block_size",
  266. "H5P.get_multi_type",
  267. "H5P.get_nfilters",
  268. "H5P.get_nprops",
  269. "H5P.get_sieve_buf_size",
  270. "H5P.get_size",
  271. "H5P.get_sizes",
  272. "H5P.get_small_data_block_size",
  273. "H5P.get_sym_k",
  274. "H5P.get_userblock",
  275. "H5P.get_version",
  276. "H5P.isa_class",
  277. "H5P.iterate",
  278. "H5P.modify_filter",
  279. "H5P.remove_filter",
  280. "H5P.set",
  281. "H5P.set_alignment",
  282. "H5P.set_alloc_time",
  283. "H5P.set_attr_creation_order",
  284. "H5P.set_attr_phase_change",
  285. "H5P.set_btree_ratios",
  286. "H5P.set_char_encoding",
  287. "H5P.set_chunk",
  288. "H5P.set_chunk_cache",
  289. "H5P.set_copy_object",
  290. "H5P.set_create_intermediate_group",
  291. "H5P.set_deflate",
  292. "H5P.set_edc_check",
  293. "H5P.set_external",
  294. "H5P.set_family_offset",
  295. "H5P.set_fapl_core",
  296. "H5P.set_fapl_family",
  297. "H5P.set_fapl_log",
  298. "H5P.set_fapl_multi",
  299. "H5P.set_fapl_sec2",
  300. "H5P.set_fapl_split",
  301. "H5P.set_fapl_stdio",
  302. "H5P.set_fclose_degree",
  303. "H5P.set_fill_time",
  304. "H5P.set_fill_value",
  305. "H5P.set_filter",
  306. "H5P.set_fletcher32",
  307. "H5P.set_gc_references",
  308. "H5P.set_hyper_vector_size",
  309. "H5P.set_istore_k",
  310. "H5P.set_layout",
  311. "H5P.set_libver_bounds",
  312. "H5P.set_link_creation_order",
  313. "H5P.set_link_phase_change",
  314. "H5P.set_mdc_config",
  315. "H5P.set_meta_block_size",
  316. "H5P.set_multi_type",
  317. "H5P.set_nbit",
  318. "H5P.set_scaleoffset",
  319. "H5P.set_shuffle",
  320. "H5P.set_sieve_buf_size",
  321. "H5P.set_sizes",
  322. "H5P.set_small_data_block_size",
  323. "H5P.set_sym_k",
  324. "H5P.set_userblock",
  325. "H5R.create",
  326. "H5R.dereference",
  327. "H5R.get_name",
  328. "H5R.get_obj_type",
  329. "H5R.get_region",
  330. "H5S.close",
  331. "H5S.copy",
  332. "H5S.create",
  333. "H5S.create_simple",
  334. "H5S.extent_copy",
  335. "H5S.get_select_bounds",
  336. "H5S.get_select_elem_npoints",
  337. "H5S.get_select_elem_pointlist",
  338. "H5S.get_select_hyper_blocklist",
  339. "H5S.get_select_hyper_nblocks",
  340. "H5S.get_select_npoints",
  341. "H5S.get_select_type",
  342. "H5S.get_simple_extent_dims",
  343. "H5S.get_simple_extent_ndims",
  344. "H5S.get_simple_extent_npoints",
  345. "H5S.get_simple_extent_type",
  346. "H5S.is_simple",
  347. "H5S.offset_simple",
  348. "H5S.select_all",
  349. "H5S.select_elements",
  350. "H5S.select_hyperslab",
  351. "H5S.select_none",
  352. "H5S.select_valid",
  353. "H5S.set_extent_none",
  354. "H5S.set_extent_simple",
  355. "H5T.array_create",
  356. "H5T.close",
  357. "H5T.commit",
  358. "H5T.committed",
  359. "H5T.copy",
  360. "H5T.create",
  361. "H5T.detect_class",
  362. "H5T.enum_create",
  363. "H5T.enum_insert",
  364. "H5T.enum_nameof",
  365. "H5T.enum_valueof",
  366. "H5T.equal",
  367. "H5T.get_array_dims",
  368. "H5T.get_array_ndims",
  369. "H5T.get_class",
  370. "H5T.get_create_plist",
  371. "H5T.get_cset",
  372. "H5T.get_ebias",
  373. "H5T.get_fields",
  374. "H5T.get_inpad",
  375. "H5T.get_member_class",
  376. "H5T.get_member_index",
  377. "H5T.get_member_name",
  378. "H5T.get_member_offset",
  379. "H5T.get_member_type",
  380. "H5T.get_member_value",
  381. "H5T.get_native_type",
  382. "H5T.get_nmembers",
  383. "H5T.get_norm",
  384. "H5T.get_offset",
  385. "H5T.get_order",
  386. "H5T.get_pad",
  387. "H5T.get_precision",
  388. "H5T.get_sign",
  389. "H5T.get_size",
  390. "H5T.get_strpad",
  391. "H5T.get_super",
  392. "H5T.get_tag",
  393. "H5T.insert",
  394. "H5T.is_variable_str",
  395. "H5T.lock",
  396. "H5T.open",
  397. "H5T.pack",
  398. "H5T.set_cset",
  399. "H5T.set_ebias",
  400. "H5T.set_fields",
  401. "H5T.set_inpad",
  402. "H5T.set_norm",
  403. "H5T.set_offset",
  404. "H5T.set_order",
  405. "H5T.set_pad",
  406. "H5T.set_precision",
  407. "H5T.set_sign",
  408. "H5T.set_size",
  409. "H5T.set_strpad",
  410. "H5T.set_tag",
  411. "H5T.vlen_create",
  412. "H5Z.filter_avail",
  413. "H5Z.get_filter_info",
  414. "Inf",
  415. "KeyValueDatastore",
  416. "KeyValueStore",
  417. "MException",
  418. "MException.last",
  419. "MaximizeCommandWindow",
  420. "MemoizedFunction",
  421. "MinimizeCommandWindow",
  422. "NET",
  423. "NET.Assembly",
  424. "NET.GenericClass",
  425. "NET.NetException",
  426. "NET.addAssembly",
  427. "NET.convertArray",
  428. "NET.createArray",
  429. "NET.createGeneric",
  430. "NET.disableAutoRelease",
  431. "NET.enableAutoRelease",
  432. "NET.invokeGenericMethod",
  433. "NET.isNETSupported",
  434. "NET.setStaticProperty",
  435. "NaN",
  436. "NaT",
  437. "OperationResult",
  438. "PutCharArray",
  439. "PutFullMatrix",
  440. "PutWorkspaceData",
  441. "PythonEnvironment",
  442. "Quit",
  443. "RandStream",
  444. "ReleaseCompatibilityException",
  445. "ReleaseCompatibilityResults",
  446. "Remove",
  447. "RemoveAll",
  448. "Setting",
  449. "SettingsGroup",
  450. "TallDatastore",
  451. "Test",
  452. "TestResult",
  453. "Tiff",
  454. "TransformedDatastore",
  455. "ValueIterator",
  456. "VersionResults",
  457. "VideoReader",
  458. "VideoWriter",
  459. "abs",
  460. "accumarray",
  461. "acos",
  462. "acosd",
  463. "acosh",
  464. "acot",
  465. "acotd",
  466. "acoth",
  467. "acsc",
  468. "acscd",
  469. "acsch",
  470. "actxGetRunningServer",
  471. "actxserver",
  472. "add",
  473. "addCause",
  474. "addCorrection",
  475. "addFile",
  476. "addFolderIncludingChildFiles",
  477. "addGroup",
  478. "addLabel",
  479. "addPath",
  480. "addReference",
  481. "addSetting",
  482. "addShortcut",
  483. "addShutdownFile",
  484. "addStartupFile",
  485. "addStyle",
  486. "addToolbarExplorationButtons",
  487. "addboundary",
  488. "addcats",
  489. "addedge",
  490. "addevent",
  491. "addlistener",
  492. "addmulti",
  493. "addnode",
  494. "addpath",
  495. "addpoints",
  496. "addpref",
  497. "addprop",
  498. "addsample",
  499. "addsampletocollection",
  500. "addtodate",
  501. "addts",
  502. "addvars",
  503. "adjacency",
  504. "airy",
  505. "align",
  506. "alim",
  507. "all",
  508. "allchild",
  509. "alpha",
  510. "alphaShape",
  511. "alphaSpectrum",
  512. "alphaTriangulation",
  513. "alphamap",
  514. "alphanumericBoundary",
  515. "alphanumericsPattern",
  516. "amd",
  517. "analyzeCodeCompatibility",
  518. "ancestor",
  519. "angle",
  520. "animatedline",
  521. "annotation",
  522. "ans",
  523. "any",
  524. "appdesigner",
  525. "append",
  526. "area",
  527. "arguments",
  528. "array2table",
  529. "array2timetable",
  530. "arrayDatastore",
  531. "arrayfun",
  532. "asFewOfPattern",
  533. "asManyOfPattern",
  534. "ascii",
  535. "asec",
  536. "asecd",
  537. "asech",
  538. "asin",
  539. "asind",
  540. "asinh",
  541. "assert",
  542. "assignin",
  543. "atan",
  544. "atan2",
  545. "atan2d",
  546. "atand",
  547. "atanh",
  548. "audiodevinfo",
  549. "audiodevreset",
  550. "audioinfo",
  551. "audioplayer",
  552. "audioread",
  553. "audiorecorder",
  554. "audiowrite",
  555. "autumn",
  556. "axes",
  557. "axis",
  558. "axtoolbar",
  559. "axtoolbarbtn",
  560. "balance",
  561. "bandwidth",
  562. "bar",
  563. "bar3",
  564. "bar3h",
  565. "barh",
  566. "barycentricToCartesian",
  567. "base2dec",
  568. "batchStartupOptionUsed",
  569. "bctree",
  570. "beep",
  571. "bench",
  572. "besselh",
  573. "besseli",
  574. "besselj",
  575. "besselk",
  576. "bessely",
  577. "beta",
  578. "betainc",
  579. "betaincinv",
  580. "betaln",
  581. "between",
  582. "bfsearch",
  583. "bicg",
  584. "bicgstab",
  585. "bicgstabl",
  586. "biconncomp",
  587. "bin2dec",
  588. "binary",
  589. "binscatter",
  590. "bitand",
  591. "bitcmp",
  592. "bitget",
  593. "bitnot",
  594. "bitor",
  595. "bitset",
  596. "bitshift",
  597. "bitxor",
  598. "blanks",
  599. "ble",
  600. "blelist",
  601. "blkdiag",
  602. "bluetooth",
  603. "bluetoothlist",
  604. "bone",
  605. "boundary",
  606. "boundaryFacets",
  607. "boundaryshape",
  608. "boundingbox",
  609. "bounds",
  610. "box",
  611. "boxchart",
  612. "brighten",
  613. "brush",
  614. "bsxfun",
  615. "bubblechart",
  616. "bubblechart3",
  617. "bubblelegend",
  618. "bubblelim",
  619. "bubblesize",
  620. "builddocsearchdb",
  621. "builtin",
  622. "bvp4c",
  623. "bvp5c",
  624. "bvpget",
  625. "bvpinit",
  626. "bvpset",
  627. "bvpxtend",
  628. "caldays",
  629. "caldiff",
  630. "calendar",
  631. "calendarDuration",
  632. "calllib",
  633. "calmonths",
  634. "calquarters",
  635. "calweeks",
  636. "calyears",
  637. "camdolly",
  638. "cameratoolbar",
  639. "camlight",
  640. "camlookat",
  641. "camorbit",
  642. "campan",
  643. "campos",
  644. "camproj",
  645. "camroll",
  646. "camtarget",
  647. "camup",
  648. "camva",
  649. "camzoom",
  650. "canUseGPU",
  651. "canUseParallelPool",
  652. "cart2pol",
  653. "cart2sph",
  654. "cartesianToBarycentric",
  655. "caseInsensitivePattern",
  656. "caseSensitivePattern",
  657. "cast",
  658. "cat",
  659. "categorical",
  660. "categories",
  661. "caxis",
  662. "cd",
  663. "cdf2rdf",
  664. "cdfepoch",
  665. "cdfinfo",
  666. "cdflib",
  667. "cdfread",
  668. "ceil",
  669. "cell",
  670. "cell2mat",
  671. "cell2struct",
  672. "cell2table",
  673. "celldisp",
  674. "cellfun",
  675. "cellplot",
  676. "cellstr",
  677. "centrality",
  678. "centroid",
  679. "cgs",
  680. "char",
  681. "characterListPattern",
  682. "characteristic",
  683. "checkcode",
  684. "chol",
  685. "cholupdate",
  686. "choose",
  687. "chooseContextMenu",
  688. "circshift",
  689. "circumcenter",
  690. "cla",
  691. "clabel",
  692. "class",
  693. "classUnderlying",
  694. "clc",
  695. "clear",
  696. "clearAllMemoizedCaches",
  697. "clearPersonalValue",
  698. "clearTemporaryValue",
  699. "clearpoints",
  700. "clearvars",
  701. "clf",
  702. "clibArray",
  703. "clibConvertArray",
  704. "clibIsNull",
  705. "clibIsReadOnly",
  706. "clibRelease",
  707. "clibgen.buildInterface",
  708. "clibgen.generateLibraryDefinition",
  709. "clipboard",
  710. "clock",
  711. "clone",
  712. "close",
  713. "closeFile",
  714. "closereq",
  715. "cmap2gray",
  716. "cmpermute",
  717. "cmunique",
  718. "codeCompatibilityReport",
  719. "colamd",
  720. "collapse",
  721. "colon",
  722. "colorbar",
  723. "colorcube",
  724. "colormap",
  725. "colororder",
  726. "colperm",
  727. "com.mathworks.engine.MatlabEngine",
  728. "com.mathworks.matlab.types.CellStr",
  729. "com.mathworks.matlab.types.Complex",
  730. "com.mathworks.matlab.types.HandleObject",
  731. "com.mathworks.matlab.types.Struct",
  732. "combine",
  733. "comet",
  734. "comet3",
  735. "compan",
  736. "compass",
  737. "complex",
  738. "compose",
  739. "computer",
  740. "comserver",
  741. "cond",
  742. "condeig",
  743. "condensation",
  744. "condest",
  745. "coneplot",
  746. "configureCallback",
  747. "configureTerminator",
  748. "conj",
  749. "conncomp",
  750. "containers.Map",
  751. "contains",
  752. "containsrange",
  753. "contour",
  754. "contour3",
  755. "contourc",
  756. "contourf",
  757. "contourslice",
  758. "contrast",
  759. "conv",
  760. "conv2",
  761. "convertCharsToStrings",
  762. "convertContainedStringsToChars",
  763. "convertStringsToChars",
  764. "convertTo",
  765. "convertvars",
  766. "convexHull",
  767. "convhull",
  768. "convhulln",
  769. "convn",
  770. "cool",
  771. "copper",
  772. "copyHDU",
  773. "copyfile",
  774. "copygraphics",
  775. "copyobj",
  776. "corrcoef",
  777. "cos",
  778. "cosd",
  779. "cosh",
  780. "cospi",
  781. "cot",
  782. "cotd",
  783. "coth",
  784. "count",
  785. "countcats",
  786. "cov",
  787. "cplxpair",
  788. "cputime",
  789. "createCategory",
  790. "createFile",
  791. "createImg",
  792. "createLabel",
  793. "createTbl",
  794. "criticalAlpha",
  795. "cross",
  796. "csc",
  797. "cscd",
  798. "csch",
  799. "ctranspose",
  800. "cummax",
  801. "cummin",
  802. "cumprod",
  803. "cumsum",
  804. "cumtrapz",
  805. "curl",
  806. "currentProject",
  807. "cylinder",
  808. "daspect",
  809. "dataTipInteraction",
  810. "dataTipTextRow",
  811. "datacursormode",
  812. "datastore",
  813. "datatip",
  814. "date",
  815. "datenum",
  816. "dateshift",
  817. "datestr",
  818. "datetick",
  819. "datetime",
  820. "datevec",
  821. "day",
  822. "days",
  823. "dbclear",
  824. "dbcont",
  825. "dbdown",
  826. "dbmex",
  827. "dbquit",
  828. "dbstack",
  829. "dbstatus",
  830. "dbstep",
  831. "dbstop",
  832. "dbtype",
  833. "dbup",
  834. "dde23",
  835. "ddeget",
  836. "ddensd",
  837. "ddesd",
  838. "ddeset",
  839. "deblank",
  840. "dec2base",
  841. "dec2bin",
  842. "dec2hex",
  843. "decic",
  844. "decomposition",
  845. "deconv",
  846. "deg2rad",
  847. "degree",
  848. "del2",
  849. "delaunay",
  850. "delaunayTriangulation",
  851. "delaunayn",
  852. "delete",
  853. "deleteCol",
  854. "deleteFile",
  855. "deleteHDU",
  856. "deleteKey",
  857. "deleteRecord",
  858. "deleteRows",
  859. "delevent",
  860. "delimitedTextImportOptions",
  861. "delsample",
  862. "delsamplefromcollection",
  863. "demo",
  864. "descriptor",
  865. "det",
  866. "details",
  867. "detectImportOptions",
  868. "detrend",
  869. "deval",
  870. "dfsearch",
  871. "diag",
  872. "dialog",
  873. "diary",
  874. "diff",
  875. "diffuse",
  876. "digitBoundary",
  877. "digitsPattern",
  878. "digraph",
  879. "dir",
  880. "disableDefaultInteractivity",
  881. "discretize",
  882. "disp",
  883. "display",
  884. "dissect",
  885. "distances",
  886. "dither",
  887. "divergence",
  888. "dmperm",
  889. "doc",
  890. "docsearch",
  891. "dos",
  892. "dot",
  893. "double",
  894. "drag",
  895. "dragrect",
  896. "drawnow",
  897. "dsearchn",
  898. "duration",
  899. "dynamicprops",
  900. "echo",
  901. "echodemo",
  902. "echotcpip",
  903. "edgeAttachments",
  904. "edgecount",
  905. "edges",
  906. "edit",
  907. "eig",
  908. "eigs",
  909. "ellipj",
  910. "ellipke",
  911. "ellipsoid",
  912. "empty",
  913. "enableDefaultInteractivity",
  914. "enableLegacyExplorationModes",
  915. "enableNETfromNetworkDrive",
  916. "enableservice",
  917. "endsWith",
  918. "enumeration",
  919. "eomday",
  920. "eps",
  921. "eq",
  922. "equilibrate",
  923. "erase",
  924. "eraseBetween",
  925. "erf",
  926. "erfc",
  927. "erfcinv",
  928. "erfcx",
  929. "erfinv",
  930. "error",
  931. "errorbar",
  932. "errordlg",
  933. "etime",
  934. "etree",
  935. "etreeplot",
  936. "eval",
  937. "evalc",
  938. "evalin",
  939. "event.ClassInstanceEvent",
  940. "event.DynamicPropertyEvent",
  941. "event.EventData",
  942. "event.PropertyEvent",
  943. "event.hasListener",
  944. "event.listener",
  945. "event.proplistener",
  946. "eventlisteners",
  947. "events",
  948. "exceltime",
  949. "exist",
  950. "exit",
  951. "exp",
  952. "expand",
  953. "expint",
  954. "expm",
  955. "expm1",
  956. "export",
  957. "export2wsdlg",
  958. "exportapp",
  959. "exportgraphics",
  960. "exportsetupdlg",
  961. "extract",
  962. "extractAfter",
  963. "extractBefore",
  964. "extractBetween",
  965. "eye",
  966. "ezpolar",
  967. "faceNormal",
  968. "factor",
  969. "factorial",
  970. "false",
  971. "fclose",
  972. "fcontour",
  973. "feather",
  974. "featureEdges",
  975. "feof",
  976. "ferror",
  977. "feval",
  978. "fewerbins",
  979. "fft",
  980. "fft2",
  981. "fftn",
  982. "fftshift",
  983. "fftw",
  984. "fgetl",
  985. "fgets",
  986. "fieldnames",
  987. "figure",
  988. "figurepalette",
  989. "fileDatastore",
  990. "fileMode",
  991. "fileName",
  992. "fileattrib",
  993. "filemarker",
  994. "fileparts",
  995. "fileread",
  996. "filesep",
  997. "fill",
  998. "fill3",
  999. "fillmissing",
  1000. "filloutliers",
  1001. "filter",
  1002. "filter2",
  1003. "fimplicit",
  1004. "fimplicit3",
  1005. "find",
  1006. "findCategory",
  1007. "findEvent",
  1008. "findFile",
  1009. "findLabel",
  1010. "findall",
  1011. "findedge",
  1012. "findfigs",
  1013. "findgroups",
  1014. "findnode",
  1015. "findobj",
  1016. "findprop",
  1017. "finish",
  1018. "fitsdisp",
  1019. "fitsinfo",
  1020. "fitsread",
  1021. "fitswrite",
  1022. "fix",
  1023. "fixedWidthImportOptions",
  1024. "flag",
  1025. "flintmax",
  1026. "flip",
  1027. "flipedge",
  1028. "fliplr",
  1029. "flipud",
  1030. "floor",
  1031. "flow",
  1032. "flush",
  1033. "fmesh",
  1034. "fminbnd",
  1035. "fminsearch",
  1036. "fopen",
  1037. "format",
  1038. "fplot",
  1039. "fplot3",
  1040. "fprintf",
  1041. "frame2im",
  1042. "fread",
  1043. "freeBoundary",
  1044. "freqspace",
  1045. "frewind",
  1046. "fscanf",
  1047. "fseek",
  1048. "fsurf",
  1049. "ftell",
  1050. "ftp",
  1051. "full",
  1052. "fullfile",
  1053. "func2str",
  1054. "function_handle",
  1055. "functions",
  1056. "functiontests",
  1057. "funm",
  1058. "fwrite",
  1059. "fzero",
  1060. "gallery",
  1061. "gamma",
  1062. "gammainc",
  1063. "gammaincinv",
  1064. "gammaln",
  1065. "gather",
  1066. "gca",
  1067. "gcbf",
  1068. "gcbo",
  1069. "gcd",
  1070. "gcf",
  1071. "gcmr",
  1072. "gco",
  1073. "genpath",
  1074. "geoaxes",
  1075. "geobasemap",
  1076. "geobubble",
  1077. "geodensityplot",
  1078. "geolimits",
  1079. "geoplot",
  1080. "geoscatter",
  1081. "geotickformat",
  1082. "get",
  1083. "getAColParms",
  1084. "getAxes",
  1085. "getBColParms",
  1086. "getColName",
  1087. "getColType",
  1088. "getColorbar",
  1089. "getConstantValue",
  1090. "getEqColType",
  1091. "getFileFormats",
  1092. "getHDUnum",
  1093. "getHDUtype",
  1094. "getHdrSpace",
  1095. "getImgSize",
  1096. "getImgType",
  1097. "getLayout",
  1098. "getLegend",
  1099. "getMockHistory",
  1100. "getNumCols",
  1101. "getNumHDUs",
  1102. "getNumInputs",
  1103. "getNumInputsImpl",
  1104. "getNumOutputs",
  1105. "getNumOutputsImpl",
  1106. "getNumRows",
  1107. "getOpenFiles",
  1108. "getProfiles",
  1109. "getPropertyGroupsImpl",
  1110. "getReport",
  1111. "getTimeStr",
  1112. "getVersion",
  1113. "getabstime",
  1114. "getappdata",
  1115. "getaudiodata",
  1116. "getdatasamples",
  1117. "getdatasamplesize",
  1118. "getenv",
  1119. "getfield",
  1120. "getframe",
  1121. "getinterpmethod",
  1122. "getnext",
  1123. "getpinstatus",
  1124. "getpixelposition",
  1125. "getplayer",
  1126. "getpoints",
  1127. "getpref",
  1128. "getqualitydesc",
  1129. "getrangefromclass",
  1130. "getsamples",
  1131. "getsampleusingtime",
  1132. "gettimeseriesnames",
  1133. "gettsafteratevent",
  1134. "gettsafterevent",
  1135. "gettsatevent",
  1136. "gettsbeforeatevent",
  1137. "gettsbeforeevent",
  1138. "gettsbetweenevents",
  1139. "getvaropts",
  1140. "ginput",
  1141. "gmres",
  1142. "gobjects",
  1143. "gplot",
  1144. "grabcode",
  1145. "gradient",
  1146. "graph",
  1147. "gray",
  1148. "grid",
  1149. "griddata",
  1150. "griddatan",
  1151. "griddedInterpolant",
  1152. "groot",
  1153. "groupcounts",
  1154. "groupfilter",
  1155. "groupsummary",
  1156. "grouptransform",
  1157. "gsvd",
  1158. "gtext",
  1159. "guidata",
  1160. "guide",
  1161. "guihandles",
  1162. "gunzip",
  1163. "gzip",
  1164. "h5create",
  1165. "h5disp",
  1166. "h5info",
  1167. "h5read",
  1168. "h5readatt",
  1169. "h5write",
  1170. "h5writeatt",
  1171. "hadamard",
  1172. "handle",
  1173. "hankel",
  1174. "hasFactoryValue",
  1175. "hasFrame",
  1176. "hasGroup",
  1177. "hasPersonalValue",
  1178. "hasSetting",
  1179. "hasTemporaryValue",
  1180. "hasdata",
  1181. "hasnext",
  1182. "hdfan",
  1183. "hdfdf24",
  1184. "hdfdfr8",
  1185. "hdfh",
  1186. "hdfhd",
  1187. "hdfhe",
  1188. "hdfhx",
  1189. "hdfinfo",
  1190. "hdfml",
  1191. "hdfpt",
  1192. "hdfread",
  1193. "hdfv",
  1194. "hdfvf",
  1195. "hdfvh",
  1196. "hdfvs",
  1197. "head",
  1198. "heatmap",
  1199. "height",
  1200. "help",
  1201. "helpdlg",
  1202. "hess",
  1203. "hex2dec",
  1204. "hex2num",
  1205. "hgexport",
  1206. "hggroup",
  1207. "hgtransform",
  1208. "hidden",
  1209. "highlight",
  1210. "hilb",
  1211. "histcounts",
  1212. "histcounts2",
  1213. "histogram",
  1214. "histogram2",
  1215. "hms",
  1216. "hold",
  1217. "holes",
  1218. "home",
  1219. "horzcat",
  1220. "hot",
  1221. "hour",
  1222. "hours",
  1223. "hover",
  1224. "hsv",
  1225. "hsv2rgb",
  1226. "hypot",
  1227. "i",
  1228. "ichol",
  1229. "idealfilter",
  1230. "idivide",
  1231. "ifft",
  1232. "ifft2",
  1233. "ifftn",
  1234. "ifftshift",
  1235. "ilu",
  1236. "im2double",
  1237. "im2frame",
  1238. "im2gray",
  1239. "im2java",
  1240. "imag",
  1241. "image",
  1242. "imageDatastore",
  1243. "imagesc",
  1244. "imapprox",
  1245. "imfinfo",
  1246. "imformats",
  1247. "imgCompress",
  1248. "import",
  1249. "importdata",
  1250. "imread",
  1251. "imresize",
  1252. "imshow",
  1253. "imtile",
  1254. "imwrite",
  1255. "inShape",
  1256. "incenter",
  1257. "incidence",
  1258. "ind2rgb",
  1259. "ind2sub",
  1260. "indegree",
  1261. "inedges",
  1262. "infoImpl",
  1263. "inmem",
  1264. "inner2outer",
  1265. "innerjoin",
  1266. "inpolygon",
  1267. "input",
  1268. "inputParser",
  1269. "inputdlg",
  1270. "inputname",
  1271. "insertATbl",
  1272. "insertAfter",
  1273. "insertBTbl",
  1274. "insertBefore",
  1275. "insertCol",
  1276. "insertImg",
  1277. "insertRows",
  1278. "int16",
  1279. "int2str",
  1280. "int32",
  1281. "int64",
  1282. "int8",
  1283. "integral",
  1284. "integral2",
  1285. "integral3",
  1286. "interp1",
  1287. "interp2",
  1288. "interp3",
  1289. "interpft",
  1290. "interpn",
  1291. "interpstreamspeed",
  1292. "intersect",
  1293. "intmax",
  1294. "intmin",
  1295. "inv",
  1296. "invhilb",
  1297. "ipermute",
  1298. "iqr",
  1299. "isCompressedImg",
  1300. "isConnected",
  1301. "isDiscreteStateSpecificationMutableImpl",
  1302. "isDone",
  1303. "isDoneImpl",
  1304. "isInactivePropertyImpl",
  1305. "isInputComplexityMutableImpl",
  1306. "isInputDataTypeMutableImpl",
  1307. "isInputSizeMutableImpl",
  1308. "isInterior",
  1309. "isKey",
  1310. "isLoaded",
  1311. "isLocked",
  1312. "isMATLABReleaseOlderThan",
  1313. "isPartitionable",
  1314. "isShuffleable",
  1315. "isStringScalar",
  1316. "isTunablePropertyDataTypeMutableImpl",
  1317. "isUnderlyingType",
  1318. "isa",
  1319. "isaUnderlying",
  1320. "isappdata",
  1321. "isbanded",
  1322. "isbetween",
  1323. "iscalendarduration",
  1324. "iscategorical",
  1325. "iscategory",
  1326. "iscell",
  1327. "iscellstr",
  1328. "ischange",
  1329. "ischar",
  1330. "iscolumn",
  1331. "iscom",
  1332. "isdag",
  1333. "isdatetime",
  1334. "isdiag",
  1335. "isdst",
  1336. "isduration",
  1337. "isempty",
  1338. "isenum",
  1339. "isequal",
  1340. "isequaln",
  1341. "isevent",
  1342. "isfield",
  1343. "isfile",
  1344. "isfinite",
  1345. "isfloat",
  1346. "isfolder",
  1347. "isgraphics",
  1348. "ishandle",
  1349. "ishermitian",
  1350. "ishold",
  1351. "ishole",
  1352. "isinf",
  1353. "isinteger",
  1354. "isinterface",
  1355. "isinterior",
  1356. "isisomorphic",
  1357. "isjava",
  1358. "iskeyword",
  1359. "isletter",
  1360. "islocalmax",
  1361. "islocalmin",
  1362. "islogical",
  1363. "ismac",
  1364. "ismatrix",
  1365. "ismember",
  1366. "ismembertol",
  1367. "ismethod",
  1368. "ismissing",
  1369. "ismultigraph",
  1370. "isnan",
  1371. "isnat",
  1372. "isnumeric",
  1373. "isobject",
  1374. "isocaps",
  1375. "isocolors",
  1376. "isomorphism",
  1377. "isonormals",
  1378. "isordinal",
  1379. "isosurface",
  1380. "isoutlier",
  1381. "ispc",
  1382. "isplaying",
  1383. "ispref",
  1384. "isprime",
  1385. "isprop",
  1386. "isprotected",
  1387. "isreal",
  1388. "isrecording",
  1389. "isregular",
  1390. "isrow",
  1391. "isscalar",
  1392. "issimplified",
  1393. "issorted",
  1394. "issortedrows",
  1395. "isspace",
  1396. "issparse",
  1397. "isstring",
  1398. "isstrprop",
  1399. "isstruct",
  1400. "isstudent",
  1401. "issymmetric",
  1402. "istable",
  1403. "istall",
  1404. "istimetable",
  1405. "istril",
  1406. "istriu",
  1407. "isundefined",
  1408. "isunix",
  1409. "isvalid",
  1410. "isvarname",
  1411. "isvector",
  1412. "isweekend",
  1413. "j",
  1414. "javaArray",
  1415. "javaMethod",
  1416. "javaMethodEDT",
  1417. "javaObject",
  1418. "javaObjectEDT",
  1419. "javaaddpath",
  1420. "javachk",
  1421. "javaclasspath",
  1422. "javarmpath",
  1423. "jet",
  1424. "join",
  1425. "jsondecode",
  1426. "jsonencode",
  1427. "juliandate",
  1428. "keyboard",
  1429. "keys",
  1430. "kron",
  1431. "labeledge",
  1432. "labelnode",
  1433. "lag",
  1434. "laplacian",
  1435. "lastwarn",
  1436. "layout",
  1437. "lcm",
  1438. "ldl",
  1439. "leapseconds",
  1440. "legend",
  1441. "legendre",
  1442. "length",
  1443. "letterBoundary",
  1444. "lettersPattern",
  1445. "lib.pointer",
  1446. "libfunctions",
  1447. "libfunctionsview",
  1448. "libisloaded",
  1449. "libpointer",
  1450. "libstruct",
  1451. "license",
  1452. "light",
  1453. "lightangle",
  1454. "lighting",
  1455. "lin2mu",
  1456. "line",
  1457. "lineBoundary",
  1458. "lines",
  1459. "linkaxes",
  1460. "linkdata",
  1461. "linkprop",
  1462. "linsolve",
  1463. "linspace",
  1464. "listModifiedFiles",
  1465. "listRequiredFiles",
  1466. "listdlg",
  1467. "listener",
  1468. "listfonts",
  1469. "load",
  1470. "loadObjectImpl",
  1471. "loadlibrary",
  1472. "loadobj",
  1473. "localfunctions",
  1474. "log",
  1475. "log10",
  1476. "log1p",
  1477. "log2",
  1478. "logical",
  1479. "loglog",
  1480. "logm",
  1481. "logspace",
  1482. "lookAheadBoundary",
  1483. "lookBehindBoundary",
  1484. "lookfor",
  1485. "lower",
  1486. "ls",
  1487. "lscov",
  1488. "lsqminnorm",
  1489. "lsqnonneg",
  1490. "lsqr",
  1491. "lu",
  1492. "magic",
  1493. "makehgtform",
  1494. "makima",
  1495. "mapreduce",
  1496. "mapreducer",
  1497. "maskedPattern",
  1498. "mat2cell",
  1499. "mat2str",
  1500. "matches",
  1501. "matchpairs",
  1502. "material",
  1503. "matfile",
  1504. "matlab.System",
  1505. "matlab.addons.disableAddon",
  1506. "matlab.addons.enableAddon",
  1507. "matlab.addons.install",
  1508. "matlab.addons.installedAddons",
  1509. "matlab.addons.isAddonEnabled",
  1510. "matlab.addons.toolbox.installToolbox",
  1511. "matlab.addons.toolbox.installedToolboxes",
  1512. "matlab.addons.toolbox.packageToolbox",
  1513. "matlab.addons.toolbox.toolboxVersion",
  1514. "matlab.addons.toolbox.uninstallToolbox",
  1515. "matlab.addons.uninstall",
  1516. "matlab.apputil.create",
  1517. "matlab.apputil.getInstalledAppInfo",
  1518. "matlab.apputil.install",
  1519. "matlab.apputil.package",
  1520. "matlab.apputil.run",
  1521. "matlab.apputil.uninstall",
  1522. "matlab.codetools.requiredFilesAndProducts",
  1523. "matlab.engine.FutureResult",
  1524. "matlab.engine.MatlabEngine",
  1525. "matlab.engine.connect_matlab",
  1526. "matlab.engine.engineName",
  1527. "matlab.engine.find_matlab",
  1528. "matlab.engine.isEngineShared",
  1529. "matlab.engine.shareEngine",
  1530. "matlab.engine.start_matlab",
  1531. "matlab.exception.JavaException",
  1532. "matlab.exception.PyException",
  1533. "matlab.graphics.chartcontainer.ChartContainer",
  1534. "matlab.graphics.chartcontainer.mixin.Colorbar",
  1535. "matlab.graphics.chartcontainer.mixin.Legend",
  1536. "matlab.io.Datastore",
  1537. "matlab.io.datastore.BlockedFileSet",
  1538. "matlab.io.datastore.DsFileReader",
  1539. "matlab.io.datastore.DsFileSet",
  1540. "matlab.io.datastore.FileSet",
  1541. "matlab.io.datastore.FileWritable",
  1542. "matlab.io.datastore.FoldersPropertyProvider",
  1543. "matlab.io.datastore.HadoopLocationBased",
  1544. "matlab.io.datastore.Partitionable",
  1545. "matlab.io.datastore.Shuffleable",
  1546. "matlab.io.hdf4.sd",
  1547. "matlab.io.hdfeos.gd",
  1548. "matlab.io.hdfeos.sw",
  1549. "matlab.io.saveVariablesToScript",
  1550. "matlab.lang.OnOffSwitchState",
  1551. "matlab.lang.correction.AppendArgumentsCorrection",
  1552. "matlab.lang.correction.ConvertToFunctionNotationCorrection",
  1553. "matlab.lang.correction.ReplaceIdentifierCorrection",
  1554. "matlab.lang.makeUniqueStrings",
  1555. "matlab.lang.makeValidName",
  1556. "matlab.mex.MexHost",
  1557. "matlab.mixin.Copyable",
  1558. "matlab.mixin.CustomDisplay",
  1559. "matlab.mixin.Heterogeneous",
  1560. "matlab.mixin.SetGet",
  1561. "matlab.mixin.SetGetExactNames",
  1562. "matlab.mixin.util.PropertyGroup",
  1563. "matlab.mock.AnyArguments",
  1564. "matlab.mock.InteractionHistory",
  1565. "matlab.mock.InteractionHistory.forMock",
  1566. "matlab.mock.MethodCallBehavior",
  1567. "matlab.mock.PropertyBehavior",
  1568. "matlab.mock.PropertyGetBehavior",
  1569. "matlab.mock.PropertySetBehavior",
  1570. "matlab.mock.TestCase",
  1571. "matlab.mock.actions.AssignOutputs",
  1572. "matlab.mock.actions.DoNothing",
  1573. "matlab.mock.actions.Invoke",
  1574. "matlab.mock.actions.ReturnStoredValue",
  1575. "matlab.mock.actions.StoreValue",
  1576. "matlab.mock.actions.ThrowException",
  1577. "matlab.mock.constraints.Occurred",
  1578. "matlab.mock.constraints.WasAccessed",
  1579. "matlab.mock.constraints.WasCalled",
  1580. "matlab.mock.constraints.WasSet",
  1581. "matlab.net.ArrayFormat",
  1582. "matlab.net.QueryParameter",
  1583. "matlab.net.URI",
  1584. "matlab.net.base64decode",
  1585. "matlab.net.base64encode",
  1586. "matlab.net.http.AuthInfo",
  1587. "matlab.net.http.AuthenticationScheme",
  1588. "matlab.net.http.Cookie",
  1589. "matlab.net.http.CookieInfo",
  1590. "matlab.net.http.Credentials",
  1591. "matlab.net.http.Disposition",
  1592. "matlab.net.http.HTTPException",
  1593. "matlab.net.http.HTTPOptions",
  1594. "matlab.net.http.HeaderField",
  1595. "matlab.net.http.LogRecord",
  1596. "matlab.net.http.MediaType",
  1597. "matlab.net.http.Message",
  1598. "matlab.net.http.MessageBody",
  1599. "matlab.net.http.MessageType",
  1600. "matlab.net.http.ProgressMonitor",
  1601. "matlab.net.http.ProtocolVersion",
  1602. "matlab.net.http.RequestLine",
  1603. "matlab.net.http.RequestMessage",
  1604. "matlab.net.http.RequestMethod",
  1605. "matlab.net.http.ResponseMessage",
  1606. "matlab.net.http.StartLine",
  1607. "matlab.net.http.StatusClass",
  1608. "matlab.net.http.StatusCode",
  1609. "matlab.net.http.StatusLine",
  1610. "matlab.net.http.field.AcceptField",
  1611. "matlab.net.http.field.AuthenticateField",
  1612. "matlab.net.http.field.AuthenticationInfoField",
  1613. "matlab.net.http.field.AuthorizationField",
  1614. "matlab.net.http.field.ContentDispositionField",
  1615. "matlab.net.http.field.ContentLengthField",
  1616. "matlab.net.http.field.ContentLocationField",
  1617. "matlab.net.http.field.ContentTypeField",
  1618. "matlab.net.http.field.CookieField",
  1619. "matlab.net.http.field.DateField",
  1620. "matlab.net.http.field.GenericField",
  1621. "matlab.net.http.field.GenericParameterizedField",
  1622. "matlab.net.http.field.HTTPDateField",
  1623. "matlab.net.http.field.IntegerField",
  1624. "matlab.net.http.field.LocationField",
  1625. "matlab.net.http.field.MediaRangeField",
  1626. "matlab.net.http.field.SetCookieField",
  1627. "matlab.net.http.field.URIReferenceField",
  1628. "matlab.net.http.io.BinaryConsumer",
  1629. "matlab.net.http.io.ContentConsumer",
  1630. "matlab.net.http.io.ContentProvider",
  1631. "matlab.net.http.io.FileConsumer",
  1632. "matlab.net.http.io.FileProvider",
  1633. "matlab.net.http.io.FormProvider",
  1634. "matlab.net.http.io.GenericConsumer",
  1635. "matlab.net.http.io.GenericProvider",
  1636. "matlab.net.http.io.ImageConsumer",
  1637. "matlab.net.http.io.ImageProvider",
  1638. "matlab.net.http.io.JSONConsumer",
  1639. "matlab.net.http.io.JSONProvider",
  1640. "matlab.net.http.io.MultipartConsumer",
  1641. "matlab.net.http.io.MultipartFormProvider",
  1642. "matlab.net.http.io.MultipartProvider",
  1643. "matlab.net.http.io.StringConsumer",
  1644. "matlab.net.http.io.StringProvider",
  1645. "matlab.perftest.FixedTimeExperiment",
  1646. "matlab.perftest.FrequentistTimeExperiment",
  1647. "matlab.perftest.TestCase",
  1648. "matlab.perftest.TimeExperiment",
  1649. "matlab.perftest.TimeResult",
  1650. "matlab.project.Project",
  1651. "matlab.project.convertDefinitionFiles",
  1652. "matlab.project.createProject",
  1653. "matlab.project.deleteProject",
  1654. "matlab.project.loadProject",
  1655. "matlab.project.rootProject",
  1656. "matlab.settings.FactoryGroup.createToolboxGroup",
  1657. "matlab.settings.SettingsFileUpgrader",
  1658. "matlab.settings.loadSettingsCompatibilityResults",
  1659. "matlab.settings.mustBeIntegerScalar",
  1660. "matlab.settings.mustBeLogicalScalar",
  1661. "matlab.settings.mustBeNumericScalar",
  1662. "matlab.settings.mustBeStringScalar",
  1663. "matlab.settings.reloadFactoryFile",
  1664. "matlab.system.mixin.FiniteSource",
  1665. "matlab.tall.blockMovingWindow",
  1666. "matlab.tall.movingWindow",
  1667. "matlab.tall.reduce",
  1668. "matlab.tall.transform",
  1669. "matlab.test.behavior.Missing",
  1670. "matlab.ui.componentcontainer.ComponentContainer",
  1671. "matlab.uitest.TestCase",
  1672. "matlab.uitest.TestCase.forInteractiveUse",
  1673. "matlab.uitest.unlock",
  1674. "matlab.unittest.Test",
  1675. "matlab.unittest.TestCase",
  1676. "matlab.unittest.TestResult",
  1677. "matlab.unittest.TestRunner",
  1678. "matlab.unittest.TestSuite",
  1679. "matlab.unittest.constraints.BooleanConstraint",
  1680. "matlab.unittest.constraints.Constraint",
  1681. "matlab.unittest.constraints.Tolerance",
  1682. "matlab.unittest.diagnostics.ConstraintDiagnostic",
  1683. "matlab.unittest.diagnostics.Diagnostic",
  1684. "matlab.unittest.fixtures.Fixture",
  1685. "matlab.unittest.measurement.DefaultMeasurementResult",
  1686. "matlab.unittest.measurement.MeasurementResult",
  1687. "matlab.unittest.measurement.chart.ComparisonPlot",
  1688. "matlab.unittest.plugins.OutputStream",
  1689. "matlab.unittest.plugins.Parallelizable",
  1690. "matlab.unittest.plugins.QualifyingPlugin",
  1691. "matlab.unittest.plugins.TestRunnerPlugin",
  1692. "matlab.wsdl.createWSDLClient",
  1693. "matlab.wsdl.setWSDLToolPath",
  1694. "matlabRelease",
  1695. "matlabrc",
  1696. "matlabroot",
  1697. "max",
  1698. "maxflow",
  1699. "maxk",
  1700. "mean",
  1701. "median",
  1702. "memmapfile",
  1703. "memoize",
  1704. "memory",
  1705. "mergecats",
  1706. "mergevars",
  1707. "mesh",
  1708. "meshc",
  1709. "meshgrid",
  1710. "meshz",
  1711. "meta.ArrayDimension",
  1712. "meta.DynamicProperty",
  1713. "meta.EnumeratedValue",
  1714. "meta.FixedDimension",
  1715. "meta.MetaData",
  1716. "meta.UnrestrictedDimension",
  1717. "meta.Validation",
  1718. "meta.abstractDetails",
  1719. "meta.class",
  1720. "meta.class.fromName",
  1721. "meta.event",
  1722. "meta.method",
  1723. "meta.package",
  1724. "meta.package.fromName",
  1725. "meta.package.getAllPackages",
  1726. "meta.property",
  1727. "metaclass",
  1728. "methods",
  1729. "methodsview",
  1730. "mex",
  1731. "mexext",
  1732. "mexhost",
  1733. "mfilename",
  1734. "mget",
  1735. "milliseconds",
  1736. "min",
  1737. "mink",
  1738. "minres",
  1739. "minspantree",
  1740. "minute",
  1741. "minutes",
  1742. "mislocked",
  1743. "missing",
  1744. "mkdir",
  1745. "mkpp",
  1746. "mldivide",
  1747. "mlintrpt",
  1748. "mlock",
  1749. "mmfileinfo",
  1750. "mod",
  1751. "mode",
  1752. "month",
  1753. "more",
  1754. "morebins",
  1755. "movAbsHDU",
  1756. "movNamHDU",
  1757. "movRelHDU",
  1758. "move",
  1759. "movefile",
  1760. "movegui",
  1761. "movevars",
  1762. "movie",
  1763. "movmad",
  1764. "movmax",
  1765. "movmean",
  1766. "movmedian",
  1767. "movmin",
  1768. "movprod",
  1769. "movstd",
  1770. "movsum",
  1771. "movvar",
  1772. "mpower",
  1773. "mput",
  1774. "mrdivide",
  1775. "msgbox",
  1776. "mtimes",
  1777. "mu2lin",
  1778. "multibandread",
  1779. "multibandwrite",
  1780. "munlock",
  1781. "mustBeA",
  1782. "mustBeFile",
  1783. "mustBeFinite",
  1784. "mustBeFloat",
  1785. "mustBeFolder",
  1786. "mustBeGreaterThan",
  1787. "mustBeGreaterThanOrEqual",
  1788. "mustBeInRange",
  1789. "mustBeInteger",
  1790. "mustBeLessThan",
  1791. "mustBeLessThanOrEqual",
  1792. "mustBeMember",
  1793. "mustBeNegative",
  1794. "mustBeNonNan",
  1795. "mustBeNonempty",
  1796. "mustBeNonmissing",
  1797. "mustBeNonnegative",
  1798. "mustBeNonpositive",
  1799. "mustBeNonsparse",
  1800. "mustBeNonzero",
  1801. "mustBeNonzeroLengthText",
  1802. "mustBeNumeric",
  1803. "mustBeNumericOrLogical",
  1804. "mustBePositive",
  1805. "mustBeReal",
  1806. "mustBeScalarOrEmpty",
  1807. "mustBeText",
  1808. "mustBeTextScalar",
  1809. "mustBeUnderlyingType",
  1810. "mustBeValidVariableName",
  1811. "mustBeVector",
  1812. "namedPattern",
  1813. "namedargs2cell",
  1814. "namelengthmax",
  1815. "nargin",
  1816. "narginchk",
  1817. "nargout",
  1818. "nargoutchk",
  1819. "native2unicode",
  1820. "nccreate",
  1821. "ncdisp",
  1822. "nchoosek",
  1823. "ncinfo",
  1824. "ncread",
  1825. "ncreadatt",
  1826. "ncwrite",
  1827. "ncwriteatt",
  1828. "ncwriteschema",
  1829. "ndgrid",
  1830. "ndims",
  1831. "nearest",
  1832. "nearestNeighbor",
  1833. "nearestvertex",
  1834. "neighbors",
  1835. "netcdf.abort",
  1836. "netcdf.close",
  1837. "netcdf.copyAtt",
  1838. "netcdf.create",
  1839. "netcdf.defDim",
  1840. "netcdf.defGrp",
  1841. "netcdf.defVar",
  1842. "netcdf.defVarChunking",
  1843. "netcdf.defVarDeflate",
  1844. "netcdf.defVarFill",
  1845. "netcdf.defVarFletcher32",
  1846. "netcdf.delAtt",
  1847. "netcdf.endDef",
  1848. "netcdf.getAtt",
  1849. "netcdf.getChunkCache",
  1850. "netcdf.getConstant",
  1851. "netcdf.getConstantNames",
  1852. "netcdf.getVar",
  1853. "netcdf.inq",
  1854. "netcdf.inqAtt",
  1855. "netcdf.inqAttID",
  1856. "netcdf.inqAttName",
  1857. "netcdf.inqDim",
  1858. "netcdf.inqDimID",
  1859. "netcdf.inqDimIDs",
  1860. "netcdf.inqFormat",
  1861. "netcdf.inqGrpName",
  1862. "netcdf.inqGrpNameFull",
  1863. "netcdf.inqGrpParent",
  1864. "netcdf.inqGrps",
  1865. "netcdf.inqLibVers",
  1866. "netcdf.inqNcid",
  1867. "netcdf.inqUnlimDims",
  1868. "netcdf.inqVar",
  1869. "netcdf.inqVarChunking",
  1870. "netcdf.inqVarDeflate",
  1871. "netcdf.inqVarFill",
  1872. "netcdf.inqVarFletcher32",
  1873. "netcdf.inqVarID",
  1874. "netcdf.inqVarIDs",
  1875. "netcdf.open",
  1876. "netcdf.putAtt",
  1877. "netcdf.putVar",
  1878. "netcdf.reDef",
  1879. "netcdf.renameAtt",
  1880. "netcdf.renameDim",
  1881. "netcdf.renameVar",
  1882. "netcdf.setChunkCache",
  1883. "netcdf.setDefaultFormat",
  1884. "netcdf.setFill",
  1885. "netcdf.sync",
  1886. "newline",
  1887. "newplot",
  1888. "nextpow2",
  1889. "nexttile",
  1890. "nnz",
  1891. "nonzeros",
  1892. "norm",
  1893. "normalize",
  1894. "normest",
  1895. "notify",
  1896. "now",
  1897. "nsidedpoly",
  1898. "nthroot",
  1899. "nufft",
  1900. "nufftn",
  1901. "null",
  1902. "num2cell",
  1903. "num2hex",
  1904. "num2ruler",
  1905. "num2str",
  1906. "numArgumentsFromSubscript",
  1907. "numRegions",
  1908. "numboundaries",
  1909. "numedges",
  1910. "numel",
  1911. "numnodes",
  1912. "numpartitions",
  1913. "numsides",
  1914. "nzmax",
  1915. "ode113",
  1916. "ode15i",
  1917. "ode15s",
  1918. "ode23",
  1919. "ode23s",
  1920. "ode23t",
  1921. "ode23tb",
  1922. "ode45",
  1923. "odeget",
  1924. "odeset",
  1925. "odextend",
  1926. "onCleanup",
  1927. "ones",
  1928. "open",
  1929. "openDiskFile",
  1930. "openFile",
  1931. "openProject",
  1932. "openfig",
  1933. "opengl",
  1934. "openvar",
  1935. "optimget",
  1936. "optimset",
  1937. "optionalPattern",
  1938. "ordeig",
  1939. "orderfields",
  1940. "ordqz",
  1941. "ordschur",
  1942. "orient",
  1943. "orth",
  1944. "outdegree",
  1945. "outedges",
  1946. "outerjoin",
  1947. "overlaps",
  1948. "overlapsrange",
  1949. "pack",
  1950. "pad",
  1951. "padecoef",
  1952. "pagectranspose",
  1953. "pagemtimes",
  1954. "pagetranspose",
  1955. "pan",
  1956. "panInteraction",
  1957. "parallelplot",
  1958. "pareto",
  1959. "parquetDatastore",
  1960. "parquetinfo",
  1961. "parquetread",
  1962. "parquetwrite",
  1963. "partition",
  1964. "parula",
  1965. "pascal",
  1966. "patch",
  1967. "path",
  1968. "pathsep",
  1969. "pathtool",
  1970. "pattern",
  1971. "pause",
  1972. "pbaspect",
  1973. "pcg",
  1974. "pchip",
  1975. "pcode",
  1976. "pcolor",
  1977. "pdepe",
  1978. "pdeval",
  1979. "peaks",
  1980. "perimeter",
  1981. "perl",
  1982. "perms",
  1983. "permute",
  1984. "pi",
  1985. "pie",
  1986. "pie3",
  1987. "pink",
  1988. "pinv",
  1989. "planerot",
  1990. "play",
  1991. "playblocking",
  1992. "plot",
  1993. "plot3",
  1994. "plotbrowser",
  1995. "plotedit",
  1996. "plotmatrix",
  1997. "plottools",
  1998. "plus",
  1999. "pointLocation",
  2000. "pol2cart",
  2001. "polaraxes",
  2002. "polarbubblechart",
  2003. "polarhistogram",
  2004. "polarplot",
  2005. "polarscatter",
  2006. "poly",
  2007. "polyarea",
  2008. "polybuffer",
  2009. "polyder",
  2010. "polyeig",
  2011. "polyfit",
  2012. "polyint",
  2013. "polyshape",
  2014. "polyval",
  2015. "polyvalm",
  2016. "posixtime",
  2017. "possessivePattern",
  2018. "pow2",
  2019. "ppval",
  2020. "predecessors",
  2021. "prefdir",
  2022. "preferences",
  2023. "press",
  2024. "preview",
  2025. "primes",
  2026. "print",
  2027. "printdlg",
  2028. "printopt",
  2029. "printpreview",
  2030. "prism",
  2031. "processInputSpecificationChangeImpl",
  2032. "processTunedPropertiesImpl",
  2033. "prod",
  2034. "profile",
  2035. "propedit",
  2036. "properties",
  2037. "propertyeditor",
  2038. "psi",
  2039. "publish",
  2040. "pwd",
  2041. "pyargs",
  2042. "pyenv",
  2043. "qmr",
  2044. "qr",
  2045. "qrdelete",
  2046. "qrinsert",
  2047. "qrupdate",
  2048. "quad2d",
  2049. "quadgk",
  2050. "quarter",
  2051. "questdlg",
  2052. "quit",
  2053. "quiver",
  2054. "quiver3",
  2055. "qz",
  2056. "rad2deg",
  2057. "rand",
  2058. "randi",
  2059. "randn",
  2060. "randperm",
  2061. "rank",
  2062. "rat",
  2063. "rats",
  2064. "rbbox",
  2065. "rcond",
  2066. "read",
  2067. "readATblHdr",
  2068. "readBTblHdr",
  2069. "readCard",
  2070. "readCol",
  2071. "readFrame",
  2072. "readImg",
  2073. "readKey",
  2074. "readKeyCmplx",
  2075. "readKeyDbl",
  2076. "readKeyLongLong",
  2077. "readKeyLongStr",
  2078. "readKeyUnit",
  2079. "readRecord",
  2080. "readall",
  2081. "readcell",
  2082. "readline",
  2083. "readlines",
  2084. "readmatrix",
  2085. "readstruct",
  2086. "readtable",
  2087. "readtimetable",
  2088. "readvars",
  2089. "real",
  2090. "reallog",
  2091. "realmax",
  2092. "realmin",
  2093. "realpow",
  2094. "realsqrt",
  2095. "record",
  2096. "recordblocking",
  2097. "rectangle",
  2098. "rectint",
  2099. "recycle",
  2100. "reducepatch",
  2101. "reducevolume",
  2102. "refresh",
  2103. "refreshSourceControl",
  2104. "refreshdata",
  2105. "regexp",
  2106. "regexpPattern",
  2107. "regexpi",
  2108. "regexprep",
  2109. "regexptranslate",
  2110. "regionZoomInteraction",
  2111. "regions",
  2112. "registerevent",
  2113. "regmatlabserver",
  2114. "rehash",
  2115. "relationaloperators",
  2116. "release",
  2117. "releaseImpl",
  2118. "reload",
  2119. "rem",
  2120. "remove",
  2121. "removeCategory",
  2122. "removeFile",
  2123. "removeGroup",
  2124. "removeLabel",
  2125. "removePath",
  2126. "removeReference",
  2127. "removeSetting",
  2128. "removeShortcut",
  2129. "removeShutdownFile",
  2130. "removeStartupFile",
  2131. "removeStyle",
  2132. "removeToolbarExplorationButtons",
  2133. "removecats",
  2134. "removets",
  2135. "removevars",
  2136. "rename",
  2137. "renamecats",
  2138. "renamevars",
  2139. "rendererinfo",
  2140. "reordercats",
  2141. "reordernodes",
  2142. "repelem",
  2143. "replace",
  2144. "replaceBetween",
  2145. "repmat",
  2146. "resample",
  2147. "rescale",
  2148. "reset",
  2149. "resetImpl",
  2150. "reshape",
  2151. "residue",
  2152. "restoredefaultpath",
  2153. "resume",
  2154. "rethrow",
  2155. "retime",
  2156. "reverse",
  2157. "rgb2gray",
  2158. "rgb2hsv",
  2159. "rgb2ind",
  2160. "rgbplot",
  2161. "ribbon",
  2162. "rlim",
  2163. "rmappdata",
  2164. "rmboundary",
  2165. "rmdir",
  2166. "rmedge",
  2167. "rmfield",
  2168. "rmholes",
  2169. "rmmissing",
  2170. "rmnode",
  2171. "rmoutliers",
  2172. "rmpath",
  2173. "rmpref",
  2174. "rmprop",
  2175. "rmslivers",
  2176. "rng",
  2177. "roots",
  2178. "rosser",
  2179. "rot90",
  2180. "rotate",
  2181. "rotate3d",
  2182. "rotateInteraction",
  2183. "round",
  2184. "rowfun",
  2185. "rows2vars",
  2186. "rref",
  2187. "rsf2csf",
  2188. "rtickangle",
  2189. "rtickformat",
  2190. "rticklabels",
  2191. "rticks",
  2192. "ruler2num",
  2193. "rulerPanInteraction",
  2194. "run",
  2195. "runChecks",
  2196. "runperf",
  2197. "runtests",
  2198. "save",
  2199. "saveObjectImpl",
  2200. "saveas",
  2201. "savefig",
  2202. "saveobj",
  2203. "savepath",
  2204. "scale",
  2205. "scatter",
  2206. "scatter3",
  2207. "scatteredInterpolant",
  2208. "scatterhistogram",
  2209. "schur",
  2210. "scroll",
  2211. "sec",
  2212. "secd",
  2213. "sech",
  2214. "second",
  2215. "seconds",
  2216. "semilogx",
  2217. "semilogy",
  2218. "sendmail",
  2219. "serialport",
  2220. "serialportlist",
  2221. "set",
  2222. "setBscale",
  2223. "setCompressionType",
  2224. "setDTR",
  2225. "setHCompScale",
  2226. "setHCompSmooth",
  2227. "setProperties",
  2228. "setRTS",
  2229. "setTileDim",
  2230. "setTscale",
  2231. "setabstime",
  2232. "setappdata",
  2233. "setcats",
  2234. "setdiff",
  2235. "setenv",
  2236. "setfield",
  2237. "setinterpmethod",
  2238. "setpixelposition",
  2239. "setpref",
  2240. "settimeseriesnames",
  2241. "settings",
  2242. "setuniformtime",
  2243. "setup",
  2244. "setupImpl",
  2245. "setvaropts",
  2246. "setvartype",
  2247. "setxor",
  2248. "sgtitle",
  2249. "shading",
  2250. "sheetnames",
  2251. "shg",
  2252. "shiftdim",
  2253. "shortestpath",
  2254. "shortestpathtree",
  2255. "showplottool",
  2256. "shrinkfaces",
  2257. "shuffle",
  2258. "sign",
  2259. "simplify",
  2260. "sin",
  2261. "sind",
  2262. "single",
  2263. "sinh",
  2264. "sinpi",
  2265. "size",
  2266. "slice",
  2267. "smooth3",
  2268. "smoothdata",
  2269. "snapnow",
  2270. "sort",
  2271. "sortboundaries",
  2272. "sortregions",
  2273. "sortrows",
  2274. "sortx",
  2275. "sorty",
  2276. "sound",
  2277. "soundsc",
  2278. "spalloc",
  2279. "sparse",
  2280. "spaugment",
  2281. "spconvert",
  2282. "spdiags",
  2283. "specular",
  2284. "speye",
  2285. "spfun",
  2286. "sph2cart",
  2287. "sphere",
  2288. "spinmap",
  2289. "spline",
  2290. "split",
  2291. "splitapply",
  2292. "splitlines",
  2293. "splitvars",
  2294. "spones",
  2295. "spparms",
  2296. "sprand",
  2297. "sprandn",
  2298. "sprandsym",
  2299. "sprank",
  2300. "spreadsheetDatastore",
  2301. "spreadsheetImportOptions",
  2302. "spring",
  2303. "sprintf",
  2304. "spy",
  2305. "sqrt",
  2306. "sqrtm",
  2307. "squeeze",
  2308. "ss2tf",
  2309. "sscanf",
  2310. "stack",
  2311. "stackedplot",
  2312. "stairs",
  2313. "standardizeMissing",
  2314. "start",
  2315. "startat",
  2316. "startsWith",
  2317. "startup",
  2318. "std",
  2319. "stem",
  2320. "stem3",
  2321. "step",
  2322. "stepImpl",
  2323. "stlread",
  2324. "stlwrite",
  2325. "stop",
  2326. "str2double",
  2327. "str2func",
  2328. "str2num",
  2329. "strcat",
  2330. "strcmp",
  2331. "strcmpi",
  2332. "stream2",
  2333. "stream3",
  2334. "streamline",
  2335. "streamparticles",
  2336. "streamribbon",
  2337. "streamslice",
  2338. "streamtube",
  2339. "strfind",
  2340. "string",
  2341. "strings",
  2342. "strip",
  2343. "strjoin",
  2344. "strjust",
  2345. "strlength",
  2346. "strncmp",
  2347. "strncmpi",
  2348. "strrep",
  2349. "strsplit",
  2350. "strtok",
  2351. "strtrim",
  2352. "struct",
  2353. "struct2cell",
  2354. "struct2table",
  2355. "structfun",
  2356. "sub2ind",
  2357. "subgraph",
  2358. "subplot",
  2359. "subsasgn",
  2360. "subscribe",
  2361. "subsindex",
  2362. "subspace",
  2363. "subsref",
  2364. "substruct",
  2365. "subtitle",
  2366. "subtract",
  2367. "subvolume",
  2368. "successors",
  2369. "sum",
  2370. "summary",
  2371. "summer",
  2372. "superclasses",
  2373. "surf",
  2374. "surf2patch",
  2375. "surface",
  2376. "surfaceArea",
  2377. "surfc",
  2378. "surfl",
  2379. "surfnorm",
  2380. "svd",
  2381. "svds",
  2382. "svdsketch",
  2383. "swapbytes",
  2384. "swarmchart",
  2385. "swarmchart3",
  2386. "sylvester",
  2387. "symamd",
  2388. "symbfact",
  2389. "symmlq",
  2390. "symrcm",
  2391. "synchronize",
  2392. "sysobjupdate",
  2393. "system",
  2394. "table",
  2395. "table2array",
  2396. "table2cell",
  2397. "table2struct",
  2398. "table2timetable",
  2399. "tabularTextDatastore",
  2400. "tail",
  2401. "tall",
  2402. "tallrng",
  2403. "tan",
  2404. "tand",
  2405. "tanh",
  2406. "tar",
  2407. "tcpclient",
  2408. "tempdir",
  2409. "tempname",
  2410. "testsuite",
  2411. "tetramesh",
  2412. "texlabel",
  2413. "text",
  2414. "textBoundary",
  2415. "textscan",
  2416. "textwrap",
  2417. "tfqmr",
  2418. "thetalim",
  2419. "thetatickformat",
  2420. "thetaticklabels",
  2421. "thetaticks",
  2422. "thingSpeakRead",
  2423. "thingSpeakWrite",
  2424. "throw",
  2425. "throwAsCaller",
  2426. "tic",
  2427. "tiledlayout",
  2428. "time",
  2429. "timeit",
  2430. "timeofday",
  2431. "timer",
  2432. "timerange",
  2433. "timerfind",
  2434. "timerfindall",
  2435. "timeseries",
  2436. "timetable",
  2437. "timetable2table",
  2438. "timezones",
  2439. "title",
  2440. "toc",
  2441. "todatenum",
  2442. "toeplitz",
  2443. "toolboxdir",
  2444. "topkrows",
  2445. "toposort",
  2446. "trace",
  2447. "transclosure",
  2448. "transform",
  2449. "translate",
  2450. "transpose",
  2451. "transreduction",
  2452. "trapz",
  2453. "treelayout",
  2454. "treeplot",
  2455. "triangulation",
  2456. "tril",
  2457. "trimesh",
  2458. "triplot",
  2459. "trisurf",
  2460. "triu",
  2461. "true",
  2462. "tscollection",
  2463. "tsdata.event",
  2464. "tsearchn",
  2465. "turbo",
  2466. "turningdist",
  2467. "type",
  2468. "typecast",
  2469. "tzoffset",
  2470. "uialert",
  2471. "uiaxes",
  2472. "uibutton",
  2473. "uibuttongroup",
  2474. "uicheckbox",
  2475. "uiconfirm",
  2476. "uicontextmenu",
  2477. "uicontrol",
  2478. "uidatepicker",
  2479. "uidropdown",
  2480. "uieditfield",
  2481. "uifigure",
  2482. "uigauge",
  2483. "uigetdir",
  2484. "uigetfile",
  2485. "uigetpref",
  2486. "uigridlayout",
  2487. "uihtml",
  2488. "uiimage",
  2489. "uiknob",
  2490. "uilabel",
  2491. "uilamp",
  2492. "uilistbox",
  2493. "uimenu",
  2494. "uint16",
  2495. "uint32",
  2496. "uint64",
  2497. "uint8",
  2498. "uiopen",
  2499. "uipanel",
  2500. "uiprogressdlg",
  2501. "uipushtool",
  2502. "uiputfile",
  2503. "uiradiobutton",
  2504. "uiresume",
  2505. "uisave",
  2506. "uisetcolor",
  2507. "uisetfont",
  2508. "uisetpref",
  2509. "uislider",
  2510. "uispinner",
  2511. "uistack",
  2512. "uistyle",
  2513. "uiswitch",
  2514. "uitab",
  2515. "uitabgroup",
  2516. "uitable",
  2517. "uitextarea",
  2518. "uitogglebutton",
  2519. "uitoggletool",
  2520. "uitoolbar",
  2521. "uitree",
  2522. "uitreenode",
  2523. "uiwait",
  2524. "uminus",
  2525. "underlyingType",
  2526. "underlyingValue",
  2527. "unicode2native",
  2528. "union",
  2529. "unique",
  2530. "uniquetol",
  2531. "unix",
  2532. "unloadlibrary",
  2533. "unmesh",
  2534. "unmkpp",
  2535. "unregisterallevents",
  2536. "unregisterevent",
  2537. "unstack",
  2538. "unsubscribe",
  2539. "untar",
  2540. "unwrap",
  2541. "unzip",
  2542. "update",
  2543. "updateDependencies",
  2544. "uplus",
  2545. "upper",
  2546. "usejava",
  2547. "userpath",
  2548. "validateFunctionSignaturesJSON",
  2549. "validateInputsImpl",
  2550. "validatePropertiesImpl",
  2551. "validateattributes",
  2552. "validatecolor",
  2553. "validatestring",
  2554. "values",
  2555. "vander",
  2556. "var",
  2557. "varargin",
  2558. "varargout",
  2559. "varfun",
  2560. "vartype",
  2561. "vecnorm",
  2562. "ver",
  2563. "verLessThan",
  2564. "version",
  2565. "vertcat",
  2566. "vertexAttachments",
  2567. "vertexNormal",
  2568. "view",
  2569. "viewmtx",
  2570. "visdiff",
  2571. "volume",
  2572. "volumebounds",
  2573. "voronoi",
  2574. "voronoiDiagram",
  2575. "voronoin",
  2576. "wait",
  2577. "waitbar",
  2578. "waitfor",
  2579. "waitforbuttonpress",
  2580. "warndlg",
  2581. "warning",
  2582. "waterfall",
  2583. "web",
  2584. "weboptions",
  2585. "webread",
  2586. "websave",
  2587. "webwrite",
  2588. "week",
  2589. "weekday",
  2590. "what",
  2591. "which",
  2592. "whitespaceBoundary",
  2593. "whitespacePattern",
  2594. "who",
  2595. "whos",
  2596. "width",
  2597. "wildcardPattern",
  2598. "wilkinson",
  2599. "winopen",
  2600. "winqueryreg",
  2601. "winter",
  2602. "withinrange",
  2603. "withtol",
  2604. "wordcloud",
  2605. "write",
  2606. "writeChecksum",
  2607. "writeCol",
  2608. "writeComment",
  2609. "writeDate",
  2610. "writeHistory",
  2611. "writeImg",
  2612. "writeKey",
  2613. "writeKeyUnit",
  2614. "writeVideo",
  2615. "writeall",
  2616. "writecell",
  2617. "writeline",
  2618. "writematrix",
  2619. "writestruct",
  2620. "writetable",
  2621. "writetimetable",
  2622. "xcorr",
  2623. "xcov",
  2624. "xlabel",
  2625. "xlim",
  2626. "xline",
  2627. "xmlread",
  2628. "xmlwrite",
  2629. "xor",
  2630. "xslt",
  2631. "xtickangle",
  2632. "xtickformat",
  2633. "xticklabels",
  2634. "xticks",
  2635. "year",
  2636. "years",
  2637. "ylabel",
  2638. "ylim",
  2639. "yline",
  2640. "ymd",
  2641. "ytickangle",
  2642. "ytickformat",
  2643. "yticklabels",
  2644. "yticks",
  2645. "yyaxis",
  2646. "yyyymmdd",
  2647. "zeros",
  2648. "zip",
  2649. "zlabel",
  2650. "zlim",
  2651. "zoom",
  2652. "zoomInteraction",
  2653. "ztickangle",
  2654. "ztickformat",
  2655. "zticklabels",
  2656. "zticks",
  2657. ],
  2658. prefix=r"(?<!\.)(", # Exclude field names
  2659. suffix=r")\b"
  2660. ),
  2661. Name.Builtin
  2662. ),
  2663. # line continuation with following comment:
  2664. (r'(\.\.\.)(.*)$', bygroups(Keyword, Comment)),
  2665. # command form:
  2666. # "How MATLAB Recognizes Command Syntax" specifies that an operator
  2667. # is recognized if it is either surrounded by spaces or by no
  2668. # spaces on both sides (this allows distinguishing `cd ./foo` from
  2669. # `cd ./ foo`.). Here, the regex checks that the first word in the
  2670. # line is not followed by <spaces> and then
  2671. # (equal | open-parenthesis | <operator><space> | <space>).
  2672. (rf'(?:^|(?<=;))(\s*)(\w+)(\s+)(?!=|\(|{_operators}\s|\s)',
  2673. bygroups(Whitespace, Name, Whitespace), 'commandargs'),
  2674. include('expressions')
  2675. ],
  2676. 'blockcomment': [
  2677. (r'^\s*%\}', Comment.Multiline, '#pop'),
  2678. (r'^.*\n', Comment.Multiline),
  2679. (r'.', Comment.Multiline),
  2680. ],
  2681. 'deffunc': _deffunc,
  2682. 'deffunc_args': _deffunc_args,
  2683. 'propattrs': [
  2684. (r'(\w+)(\s*)(=)(\s*)(\d+)',
  2685. bygroups(Name.Builtin, Whitespace, Punctuation, Whitespace,
  2686. Number)),
  2687. (r'(\w+)(\s*)(=)(\s*)([a-zA-Z]\w*)',
  2688. bygroups(Name.Builtin, Whitespace, Punctuation, Whitespace,
  2689. Keyword)),
  2690. (r',', Punctuation),
  2691. (r'\)', Punctuation, '#pop'),
  2692. (r'\s+', Whitespace),
  2693. (r'.', Text),
  2694. ],
  2695. 'defprops': [
  2696. (r'%\{\s*\n', Comment.Multiline, 'blockcomment'),
  2697. (r'%.*$', Comment),
  2698. (r'(?<!\.)end\b', Keyword, '#pop'),
  2699. include('expressions'),
  2700. ],
  2701. 'string': [
  2702. (r"[^']*'", String, '#pop'),
  2703. ],
  2704. 'commandargs': [
  2705. # If an equal sign or other operator is encountered, this
  2706. # isn't a command. It might be a variable assignment or
  2707. # comparison operation with multiple spaces before the
  2708. # equal sign or operator
  2709. (r"=", Punctuation, '#pop'),
  2710. (_operators, Operator, '#pop'),
  2711. (r"[ \t]+", Whitespace),
  2712. ("'[^']*'", String),
  2713. (r"[^';\s]+", String),
  2714. (";", Punctuation, '#pop'),
  2715. default('#pop'),
  2716. ]
  2717. }
  2718. def analyse_text(text):
  2719. # function declaration.
  2720. first_non_comment = next((line for line in text.splitlines()
  2721. if not re.match(r'^\s*%', text)), '').strip()
  2722. if (first_non_comment.startswith('function')
  2723. and '{' not in first_non_comment):
  2724. return 1.
  2725. # comment
  2726. elif re.search(r'^\s*%', text, re.M):
  2727. return 0.2
  2728. # system cmd
  2729. elif re.search(r'^!\w+', text, re.M):
  2730. return 0.2
  2731. line_re = re.compile('.*?\n')
  2732. class MatlabSessionLexer(Lexer):
  2733. """
  2734. For Matlab sessions. Modeled after PythonConsoleLexer.
  2735. Contributed by Ken Schutte <kschutte@csail.mit.edu>.
  2736. """
  2737. name = 'Matlab session'
  2738. aliases = ['matlabsession']
  2739. url = 'https://www.mathworks.com/products/matlab.html'
  2740. version_added = '0.10'
  2741. _example = "matlabsession/matlabsession_sample.txt"
  2742. def get_tokens_unprocessed(self, text):
  2743. mlexer = MatlabLexer(**self.options)
  2744. curcode = ''
  2745. insertions = []
  2746. continuation = False
  2747. for match in line_re.finditer(text):
  2748. line = match.group()
  2749. if line.startswith('>> '):
  2750. insertions.append((len(curcode),
  2751. [(0, Generic.Prompt, line[:3])]))
  2752. curcode += line[3:]
  2753. elif line.startswith('>>'):
  2754. insertions.append((len(curcode),
  2755. [(0, Generic.Prompt, line[:2])]))
  2756. curcode += line[2:]
  2757. elif line.startswith('???'):
  2758. idx = len(curcode)
  2759. # without is showing error on same line as before...?
  2760. # line = "\n" + line
  2761. token = (0, Generic.Traceback, line)
  2762. insertions.append((idx, [token]))
  2763. elif continuation and insertions:
  2764. # line_start is the length of the most recent prompt symbol
  2765. line_start = len(insertions[-1][-1][-1])
  2766. # Set leading spaces with the length of the prompt to be a generic prompt
  2767. # This keeps code aligned when prompts are removed, say with some Javascript
  2768. if line.startswith(' '*line_start):
  2769. insertions.append(
  2770. (len(curcode), [(0, Generic.Prompt, line[:line_start])]))
  2771. curcode += line[line_start:]
  2772. else:
  2773. curcode += line
  2774. else:
  2775. if curcode:
  2776. yield from do_insertions(
  2777. insertions, mlexer.get_tokens_unprocessed(curcode))
  2778. curcode = ''
  2779. insertions = []
  2780. yield match.start(), Generic.Output, line
  2781. # Does not allow continuation if a comment is included after the ellipses.
  2782. # Continues any line that ends with ..., even comments (lines that start with %)
  2783. if line.strip().endswith('...'):
  2784. continuation = True
  2785. else:
  2786. continuation = False
  2787. if curcode: # or item:
  2788. yield from do_insertions(
  2789. insertions, mlexer.get_tokens_unprocessed(curcode))
  2790. class OctaveLexer(RegexLexer):
  2791. """
  2792. For GNU Octave source code.
  2793. """
  2794. name = 'Octave'
  2795. url = 'https://www.gnu.org/software/octave/index'
  2796. aliases = ['octave']
  2797. filenames = ['*.m']
  2798. mimetypes = ['text/octave']
  2799. version_added = '1.5'
  2800. # These lists are generated automatically.
  2801. # Run the following in bash shell:
  2802. #
  2803. # First dump all of the Octave manual into a plain text file:
  2804. #
  2805. # $ info octave --subnodes -o octave-manual
  2806. #
  2807. # Now grep through it:
  2808. # for i in \
  2809. # "Built-in Function" "Command" "Function File" \
  2810. # "Loadable Function" "Mapping Function";
  2811. # do
  2812. # perl -e '@name = qw('"$i"');
  2813. # print lc($name[0]),"_kw = [\n"';
  2814. #
  2815. # perl -n -e 'print "\"$1\",\n" if /-- '"$i"': .* (\w*) \(/;' \
  2816. # octave-manual | sort | uniq ;
  2817. # echo "]" ;
  2818. # echo;
  2819. # done
  2820. # taken from Octave Mercurial changeset 8cc154f45e37 (30-jan-2011)
  2821. builtin_kw = (
  2822. "addlistener", "addpath", "addproperty", "all",
  2823. "and", "any", "argnames", "argv", "assignin",
  2824. "atexit", "autoload",
  2825. "available_graphics_toolkits", "beep_on_error",
  2826. "bitand", "bitmax", "bitor", "bitshift", "bitxor",
  2827. "cat", "cell", "cellstr", "char", "class", "clc",
  2828. "columns", "command_line_path",
  2829. "completion_append_char", "completion_matches",
  2830. "complex", "confirm_recursive_rmdir", "cputime",
  2831. "crash_dumps_octave_core", "ctranspose", "cumprod",
  2832. "cumsum", "debug_on_error", "debug_on_interrupt",
  2833. "debug_on_warning", "default_save_options",
  2834. "dellistener", "diag", "diff", "disp",
  2835. "doc_cache_file", "do_string_escapes", "double",
  2836. "drawnow", "e", "echo_executing_commands", "eps",
  2837. "eq", "errno", "errno_list", "error", "eval",
  2838. "evalin", "exec", "exist", "exit", "eye", "false",
  2839. "fclear", "fclose", "fcntl", "fdisp", "feof",
  2840. "ferror", "feval", "fflush", "fgetl", "fgets",
  2841. "fieldnames", "file_in_loadpath", "file_in_path",
  2842. "filemarker", "filesep", "find_dir_in_path",
  2843. "fixed_point_format", "fnmatch", "fopen", "fork",
  2844. "formula", "fprintf", "fputs", "fread", "freport",
  2845. "frewind", "fscanf", "fseek", "fskipl", "ftell",
  2846. "functions", "fwrite", "ge", "genpath", "get",
  2847. "getegid", "getenv", "geteuid", "getgid",
  2848. "getpgrp", "getpid", "getppid", "getuid", "glob",
  2849. "gt", "gui_mode", "history_control",
  2850. "history_file", "history_size",
  2851. "history_timestamp_format_string", "home",
  2852. "horzcat", "hypot", "ifelse",
  2853. "ignore_function_time_stamp", "inferiorto",
  2854. "info_file", "info_program", "inline", "input",
  2855. "intmax", "intmin", "ipermute",
  2856. "is_absolute_filename", "isargout", "isbool",
  2857. "iscell", "iscellstr", "ischar", "iscomplex",
  2858. "isempty", "isfield", "isfloat", "isglobal",
  2859. "ishandle", "isieee", "isindex", "isinteger",
  2860. "islogical", "ismatrix", "ismethod", "isnull",
  2861. "isnumeric", "isobject", "isreal",
  2862. "is_rooted_relative_filename", "issorted",
  2863. "isstruct", "isvarname", "kbhit", "keyboard",
  2864. "kill", "lasterr", "lasterror", "lastwarn",
  2865. "ldivide", "le", "length", "link", "linspace",
  2866. "logical", "lstat", "lt", "make_absolute_filename",
  2867. "makeinfo_program", "max_recursion_depth", "merge",
  2868. "methods", "mfilename", "minus", "mislocked",
  2869. "mkdir", "mkfifo", "mkstemp", "mldivide", "mlock",
  2870. "mouse_wheel_zoom", "mpower", "mrdivide", "mtimes",
  2871. "munlock", "nargin", "nargout",
  2872. "native_float_format", "ndims", "ne", "nfields",
  2873. "nnz", "norm", "not", "numel", "nzmax",
  2874. "octave_config_info", "octave_core_file_limit",
  2875. "octave_core_file_name",
  2876. "octave_core_file_options", "ones", "or",
  2877. "output_max_field_width", "output_precision",
  2878. "page_output_immediately", "page_screen_output",
  2879. "path", "pathsep", "pause", "pclose", "permute",
  2880. "pi", "pipe", "plus", "popen", "power",
  2881. "print_empty_dimensions", "printf",
  2882. "print_struct_array_contents", "prod",
  2883. "program_invocation_name", "program_name",
  2884. "putenv", "puts", "pwd", "quit", "rats", "rdivide",
  2885. "readdir", "readlink", "read_readline_init_file",
  2886. "realmax", "realmin", "rehash", "rename",
  2887. "repelems", "re_read_readline_init_file", "reset",
  2888. "reshape", "resize", "restoredefaultpath",
  2889. "rethrow", "rmdir", "rmfield", "rmpath", "rows",
  2890. "save_header_format_string", "save_precision",
  2891. "saving_history", "scanf", "set", "setenv",
  2892. "shell_cmd", "sighup_dumps_octave_core",
  2893. "sigterm_dumps_octave_core", "silent_functions",
  2894. "single", "size", "size_equal", "sizemax",
  2895. "sizeof", "sleep", "source", "sparse_auto_mutate",
  2896. "split_long_rows", "sprintf", "squeeze", "sscanf",
  2897. "stat", "stderr", "stdin", "stdout", "strcmp",
  2898. "strcmpi", "string_fill_char", "strncmp",
  2899. "strncmpi", "struct", "struct_levels_to_print",
  2900. "strvcat", "subsasgn", "subsref", "sum", "sumsq",
  2901. "superiorto", "suppress_verbose_help_message",
  2902. "symlink", "system", "tic", "tilde_expand",
  2903. "times", "tmpfile", "tmpnam", "toc", "toupper",
  2904. "transpose", "true", "typeinfo", "umask", "uminus",
  2905. "uname", "undo_string_escapes", "unlink", "uplus",
  2906. "upper", "usage", "usleep", "vec", "vectorize",
  2907. "vertcat", "waitpid", "warning", "warranty",
  2908. "whos_line_format", "yes_or_no", "zeros",
  2909. "inf", "Inf", "nan", "NaN")
  2910. command_kw = ("close", "load", "who", "whos")
  2911. function_kw = (
  2912. "accumarray", "accumdim", "acosd", "acotd",
  2913. "acscd", "addtodate", "allchild", "ancestor",
  2914. "anova", "arch_fit", "arch_rnd", "arch_test",
  2915. "area", "arma_rnd", "arrayfun", "ascii", "asctime",
  2916. "asecd", "asind", "assert", "atand",
  2917. "autoreg_matrix", "autumn", "axes", "axis", "bar",
  2918. "barh", "bartlett", "bartlett_test", "beep",
  2919. "betacdf", "betainv", "betapdf", "betarnd",
  2920. "bicgstab", "bicubic", "binary", "binocdf",
  2921. "binoinv", "binopdf", "binornd", "bitcmp",
  2922. "bitget", "bitset", "blackman", "blanks",
  2923. "blkdiag", "bone", "box", "brighten", "calendar",
  2924. "cast", "cauchy_cdf", "cauchy_inv", "cauchy_pdf",
  2925. "cauchy_rnd", "caxis", "celldisp", "center", "cgs",
  2926. "chisquare_test_homogeneity",
  2927. "chisquare_test_independence", "circshift", "cla",
  2928. "clabel", "clf", "clock", "cloglog", "closereq",
  2929. "colon", "colorbar", "colormap", "colperm",
  2930. "comet", "common_size", "commutation_matrix",
  2931. "compan", "compare_versions", "compass",
  2932. "computer", "cond", "condest", "contour",
  2933. "contourc", "contourf", "contrast", "conv",
  2934. "convhull", "cool", "copper", "copyfile", "cor",
  2935. "corrcoef", "cor_test", "cosd", "cotd", "cov",
  2936. "cplxpair", "cross", "cscd", "cstrcat", "csvread",
  2937. "csvwrite", "ctime", "cumtrapz", "curl", "cut",
  2938. "cylinder", "date", "datenum", "datestr",
  2939. "datetick", "datevec", "dblquad", "deal",
  2940. "deblank", "deconv", "delaunay", "delaunayn",
  2941. "delete", "demo", "detrend", "diffpara", "diffuse",
  2942. "dir", "discrete_cdf", "discrete_inv",
  2943. "discrete_pdf", "discrete_rnd", "display",
  2944. "divergence", "dlmwrite", "dos", "dsearch",
  2945. "dsearchn", "duplication_matrix", "durbinlevinson",
  2946. "ellipsoid", "empirical_cdf", "empirical_inv",
  2947. "empirical_pdf", "empirical_rnd", "eomday",
  2948. "errorbar", "etime", "etreeplot", "example",
  2949. "expcdf", "expinv", "expm", "exppdf", "exprnd",
  2950. "ezcontour", "ezcontourf", "ezmesh", "ezmeshc",
  2951. "ezplot", "ezpolar", "ezsurf", "ezsurfc", "factor",
  2952. "factorial", "fail", "fcdf", "feather", "fftconv",
  2953. "fftfilt", "fftshift", "figure", "fileattrib",
  2954. "fileparts", "fill", "findall", "findobj",
  2955. "findstr", "finv", "flag", "flipdim", "fliplr",
  2956. "flipud", "fpdf", "fplot", "fractdiff", "freqz",
  2957. "freqz_plot", "frnd", "fsolve",
  2958. "f_test_regression", "ftp", "fullfile", "fzero",
  2959. "gamcdf", "gaminv", "gampdf", "gamrnd", "gca",
  2960. "gcbf", "gcbo", "gcf", "genvarname", "geocdf",
  2961. "geoinv", "geopdf", "geornd", "getfield", "ginput",
  2962. "glpk", "gls", "gplot", "gradient",
  2963. "graphics_toolkit", "gray", "grid", "griddata",
  2964. "griddatan", "gtext", "gunzip", "gzip", "hadamard",
  2965. "hamming", "hankel", "hanning", "hggroup",
  2966. "hidden", "hilb", "hist", "histc", "hold", "hot",
  2967. "hotelling_test", "housh", "hsv", "hurst",
  2968. "hygecdf", "hygeinv", "hygepdf", "hygernd",
  2969. "idivide", "ifftshift", "image", "imagesc",
  2970. "imfinfo", "imread", "imshow", "imwrite", "index",
  2971. "info", "inpolygon", "inputname", "interpft",
  2972. "interpn", "intersect", "invhilb", "iqr", "isa",
  2973. "isdefinite", "isdir", "is_duplicate_entry",
  2974. "isequal", "isequalwithequalnans", "isfigure",
  2975. "ishermitian", "ishghandle", "is_leap_year",
  2976. "isletter", "ismac", "ismember", "ispc", "isprime",
  2977. "isprop", "isscalar", "issquare", "isstrprop",
  2978. "issymmetric", "isunix", "is_valid_file_id",
  2979. "isvector", "jet", "kendall",
  2980. "kolmogorov_smirnov_cdf",
  2981. "kolmogorov_smirnov_test", "kruskal_wallis_test",
  2982. "krylov", "kurtosis", "laplace_cdf", "laplace_inv",
  2983. "laplace_pdf", "laplace_rnd", "legend", "legendre",
  2984. "license", "line", "linkprop", "list_primes",
  2985. "loadaudio", "loadobj", "logistic_cdf",
  2986. "logistic_inv", "logistic_pdf", "logistic_rnd",
  2987. "logit", "loglog", "loglogerr", "logm", "logncdf",
  2988. "logninv", "lognpdf", "lognrnd", "logspace",
  2989. "lookfor", "ls_command", "lsqnonneg", "magic",
  2990. "mahalanobis", "manova", "matlabroot",
  2991. "mcnemar_test", "mean", "meansq", "median", "menu",
  2992. "mesh", "meshc", "meshgrid", "meshz", "mexext",
  2993. "mget", "mkpp", "mode", "moment", "movefile",
  2994. "mpoles", "mput", "namelengthmax", "nargchk",
  2995. "nargoutchk", "nbincdf", "nbininv", "nbinpdf",
  2996. "nbinrnd", "nchoosek", "ndgrid", "newplot", "news",
  2997. "nonzeros", "normcdf", "normest", "norminv",
  2998. "normpdf", "normrnd", "now", "nthroot", "null",
  2999. "ocean", "ols", "onenormest", "optimget",
  3000. "optimset", "orderfields", "orient", "orth",
  3001. "pack", "pareto", "parseparams", "pascal", "patch",
  3002. "pathdef", "pcg", "pchip", "pcolor", "pcr",
  3003. "peaks", "periodogram", "perl", "perms", "pie",
  3004. "pink", "planerot", "playaudio", "plot",
  3005. "plotmatrix", "plotyy", "poisscdf", "poissinv",
  3006. "poisspdf", "poissrnd", "polar", "poly",
  3007. "polyaffine", "polyarea", "polyderiv", "polyfit",
  3008. "polygcd", "polyint", "polyout", "polyreduce",
  3009. "polyval", "polyvalm", "postpad", "powerset",
  3010. "ppder", "ppint", "ppjumps", "ppplot", "ppval",
  3011. "pqpnonneg", "prepad", "primes", "print",
  3012. "print_usage", "prism", "probit", "qp", "qqplot",
  3013. "quadcc", "quadgk", "quadl", "quadv", "quiver",
  3014. "qzhess", "rainbow", "randi", "range", "rank",
  3015. "ranks", "rat", "reallog", "realpow", "realsqrt",
  3016. "record", "rectangle_lw", "rectangle_sw",
  3017. "rectint", "refresh", "refreshdata",
  3018. "regexptranslate", "repmat", "residue", "ribbon",
  3019. "rindex", "roots", "rose", "rosser", "rotdim",
  3020. "rref", "run", "run_count", "rundemos", "run_test",
  3021. "runtests", "saveas", "saveaudio", "saveobj",
  3022. "savepath", "scatter", "secd", "semilogx",
  3023. "semilogxerr", "semilogy", "semilogyerr",
  3024. "setaudio", "setdiff", "setfield", "setxor",
  3025. "shading", "shift", "shiftdim", "sign_test",
  3026. "sinc", "sind", "sinetone", "sinewave", "skewness",
  3027. "slice", "sombrero", "sortrows", "spaugment",
  3028. "spconvert", "spdiags", "spearman", "spectral_adf",
  3029. "spectral_xdf", "specular", "speed", "spencer",
  3030. "speye", "spfun", "sphere", "spinmap", "spline",
  3031. "spones", "sprand", "sprandn", "sprandsym",
  3032. "spring", "spstats", "spy", "sqp", "stairs",
  3033. "statistics", "std", "stdnormal_cdf",
  3034. "stdnormal_inv", "stdnormal_pdf", "stdnormal_rnd",
  3035. "stem", "stft", "strcat", "strchr", "strjust",
  3036. "strmatch", "strread", "strsplit", "strtok",
  3037. "strtrim", "strtrunc", "structfun", "studentize",
  3038. "subplot", "subsindex", "subspace", "substr",
  3039. "substruct", "summer", "surf", "surface", "surfc",
  3040. "surfl", "surfnorm", "svds", "swapbytes",
  3041. "sylvester_matrix", "symvar", "synthesis", "table",
  3042. "tand", "tar", "tcdf", "tempdir", "tempname",
  3043. "test", "text", "textread", "textscan", "tinv",
  3044. "title", "toeplitz", "tpdf", "trace", "trapz",
  3045. "treelayout", "treeplot", "triangle_lw",
  3046. "triangle_sw", "tril", "trimesh", "triplequad",
  3047. "triplot", "trisurf", "triu", "trnd", "tsearchn",
  3048. "t_test", "t_test_regression", "type", "unidcdf",
  3049. "unidinv", "unidpdf", "unidrnd", "unifcdf",
  3050. "unifinv", "unifpdf", "unifrnd", "union", "unique",
  3051. "unix", "unmkpp", "unpack", "untabify", "untar",
  3052. "unwrap", "unzip", "u_test", "validatestring",
  3053. "vander", "var", "var_test", "vech", "ver",
  3054. "version", "view", "voronoi", "voronoin",
  3055. "waitforbuttonpress", "wavread", "wavwrite",
  3056. "wblcdf", "wblinv", "wblpdf", "wblrnd", "weekday",
  3057. "welch_test", "what", "white", "whitebg",
  3058. "wienrnd", "wilcoxon_test", "wilkinson", "winter",
  3059. "xlabel", "xlim", "ylabel", "yulewalker", "zip",
  3060. "zlabel", "z_test")
  3061. loadable_kw = (
  3062. "airy", "amd", "balance", "besselh", "besseli",
  3063. "besselj", "besselk", "bessely", "bitpack",
  3064. "bsxfun", "builtin", "ccolamd", "cellfun",
  3065. "cellslices", "chol", "choldelete", "cholinsert",
  3066. "cholinv", "cholshift", "cholupdate", "colamd",
  3067. "colloc", "convhulln", "convn", "csymamd",
  3068. "cummax", "cummin", "daspk", "daspk_options",
  3069. "dasrt", "dasrt_options", "dassl", "dassl_options",
  3070. "dbclear", "dbdown", "dbstack", "dbstatus",
  3071. "dbstop", "dbtype", "dbup", "dbwhere", "det",
  3072. "dlmread", "dmperm", "dot", "eig", "eigs",
  3073. "endgrent", "endpwent", "etree", "fft", "fftn",
  3074. "fftw", "filter", "find", "full", "gcd",
  3075. "getgrent", "getgrgid", "getgrnam", "getpwent",
  3076. "getpwnam", "getpwuid", "getrusage", "givens",
  3077. "gmtime", "gnuplot_binary", "hess", "ifft",
  3078. "ifftn", "inv", "isdebugmode", "issparse", "kron",
  3079. "localtime", "lookup", "lsode", "lsode_options",
  3080. "lu", "luinc", "luupdate", "matrix_type", "max",
  3081. "min", "mktime", "pinv", "qr", "qrdelete",
  3082. "qrinsert", "qrshift", "qrupdate", "quad",
  3083. "quad_options", "qz", "rand", "rande", "randg",
  3084. "randn", "randp", "randperm", "rcond", "regexp",
  3085. "regexpi", "regexprep", "schur", "setgrent",
  3086. "setpwent", "sort", "spalloc", "sparse", "spparms",
  3087. "sprank", "sqrtm", "strfind", "strftime",
  3088. "strptime", "strrep", "svd", "svd_driver", "syl",
  3089. "symamd", "symbfact", "symrcm", "time", "tsearch",
  3090. "typecast", "urlread", "urlwrite")
  3091. mapping_kw = (
  3092. "abs", "acos", "acosh", "acot", "acoth", "acsc",
  3093. "acsch", "angle", "arg", "asec", "asech", "asin",
  3094. "asinh", "atan", "atanh", "beta", "betainc",
  3095. "betaln", "bincoeff", "cbrt", "ceil", "conj", "cos",
  3096. "cosh", "cot", "coth", "csc", "csch", "erf", "erfc",
  3097. "erfcx", "erfinv", "exp", "finite", "fix", "floor",
  3098. "fmod", "gamma", "gammainc", "gammaln", "imag",
  3099. "isalnum", "isalpha", "isascii", "iscntrl",
  3100. "isdigit", "isfinite", "isgraph", "isinf",
  3101. "islower", "isna", "isnan", "isprint", "ispunct",
  3102. "isspace", "isupper", "isxdigit", "lcm", "lgamma",
  3103. "log", "lower", "mod", "real", "rem", "round",
  3104. "roundb", "sec", "sech", "sign", "sin", "sinh",
  3105. "sqrt", "tan", "tanh", "toascii", "tolower", "xor")
  3106. builtin_consts = (
  3107. "EDITOR", "EXEC_PATH", "I", "IMAGE_PATH", "NA",
  3108. "OCTAVE_HOME", "OCTAVE_VERSION", "PAGER",
  3109. "PAGER_FLAGS", "SEEK_CUR", "SEEK_END", "SEEK_SET",
  3110. "SIG", "S_ISBLK", "S_ISCHR", "S_ISDIR", "S_ISFIFO",
  3111. "S_ISLNK", "S_ISREG", "S_ISSOCK", "WCONTINUE",
  3112. "WCOREDUMP", "WEXITSTATUS", "WIFCONTINUED",
  3113. "WIFEXITED", "WIFSIGNALED", "WIFSTOPPED", "WNOHANG",
  3114. "WSTOPSIG", "WTERMSIG", "WUNTRACED")
  3115. tokens = {
  3116. 'root': [
  3117. (r'%\{\s*\n', Comment.Multiline, 'percentblockcomment'),
  3118. (r'#\{\s*\n', Comment.Multiline, 'hashblockcomment'),
  3119. (r'[%#].*$', Comment),
  3120. (r'^\s*function\b', Keyword, 'deffunc'),
  3121. # from 'iskeyword' on hg changeset 8cc154f45e37
  3122. (words((
  3123. '__FILE__', '__LINE__', 'break', 'case', 'catch', 'classdef',
  3124. 'continue', 'do', 'else', 'elseif', 'end', 'end_try_catch',
  3125. 'end_unwind_protect', 'endclassdef', 'endevents', 'endfor',
  3126. 'endfunction', 'endif', 'endmethods', 'endproperties', 'endswitch',
  3127. 'endwhile', 'events', 'for', 'function', 'get', 'global', 'if',
  3128. 'methods', 'otherwise', 'persistent', 'properties', 'return',
  3129. 'set', 'static', 'switch', 'try', 'until', 'unwind_protect',
  3130. 'unwind_protect_cleanup', 'while'), suffix=r'\b'),
  3131. Keyword),
  3132. (words(builtin_kw + command_kw + function_kw + loadable_kw + mapping_kw,
  3133. suffix=r'\b'), Name.Builtin),
  3134. (words(builtin_consts, suffix=r'\b'), Name.Constant),
  3135. # operators in Octave but not Matlab:
  3136. (r'-=|!=|!|/=|--', Operator),
  3137. # operators:
  3138. (r'-|==|~=|<|>|<=|>=|&&|&|~|\|\|?', Operator),
  3139. # operators in Octave but not Matlab requiring escape for re:
  3140. (r'\*=|\+=|\^=|\/=|\\=|\*\*|\+\+|\.\*\*', Operator),
  3141. # operators requiring escape for re:
  3142. (r'\.\*|\*|\+|\.\^|\^|\.\\|\.\/|\/|\\', Operator),
  3143. # punctuation:
  3144. (r'[\[\](){}:@.,]', Punctuation),
  3145. (r'=|:|;', Punctuation),
  3146. (r'"[^"]*"', String),
  3147. (r'(\d+\.\d*|\d*\.\d+)([eEf][+-]?[0-9]+)?', Number.Float),
  3148. (r'\d+[eEf][+-]?[0-9]+', Number.Float),
  3149. (r'\d+', Number.Integer),
  3150. # quote can be transpose, instead of string:
  3151. # (not great, but handles common cases...)
  3152. (r'(?<=[\w)\].])\'+', Operator),
  3153. (r'(?<![\w)\].])\'', String, 'string'),
  3154. (r'[a-zA-Z_]\w*', Name),
  3155. (r'\s+', Text),
  3156. (r'.', Text),
  3157. ],
  3158. 'percentblockcomment': [
  3159. (r'^\s*%\}', Comment.Multiline, '#pop'),
  3160. (r'^.*\n', Comment.Multiline),
  3161. (r'.', Comment.Multiline),
  3162. ],
  3163. 'hashblockcomment': [
  3164. (r'^\s*#\}', Comment.Multiline, '#pop'),
  3165. (r'^.*\n', Comment.Multiline),
  3166. (r'.', Comment.Multiline),
  3167. ],
  3168. 'string': [
  3169. (r"[^']*'", String, '#pop'),
  3170. ],
  3171. 'deffunc': _deffunc,
  3172. 'deffunc_args': _deffunc_args,
  3173. }
  3174. def analyse_text(text):
  3175. """Octave is quite hard to spot, and it looks like Matlab as well."""
  3176. return 0
  3177. class ScilabLexer(RegexLexer):
  3178. """
  3179. For Scilab source code.
  3180. """
  3181. name = 'Scilab'
  3182. url = 'https://www.scilab.org/'
  3183. aliases = ['scilab']
  3184. filenames = ['*.sci', '*.sce', '*.tst']
  3185. mimetypes = ['text/scilab']
  3186. version_added = '1.5'
  3187. tokens = {
  3188. 'root': [
  3189. (r'//.*?$', Comment.Single),
  3190. (r'^\s*function\b', Keyword, 'deffunc'),
  3191. (words((
  3192. '__FILE__', '__LINE__', 'break', 'case', 'catch', 'classdef', 'continue', 'do', 'else',
  3193. 'elseif', 'end', 'end_try_catch', 'end_unwind_protect', 'endclassdef',
  3194. 'endevents', 'endfor', 'endfunction', 'endif', 'endmethods', 'endproperties',
  3195. 'endswitch', 'endwhile', 'events', 'for', 'function', 'get', 'global', 'if', 'methods',
  3196. 'otherwise', 'persistent', 'properties', 'return', 'set', 'static', 'switch', 'try',
  3197. 'until', 'unwind_protect', 'unwind_protect_cleanup', 'while'), suffix=r'\b'),
  3198. Keyword),
  3199. (words(_scilab_builtins.functions_kw +
  3200. _scilab_builtins.commands_kw +
  3201. _scilab_builtins.macros_kw, suffix=r'\b'), Name.Builtin),
  3202. (words(_scilab_builtins.variables_kw, suffix=r'\b'), Name.Constant),
  3203. # operators:
  3204. (r'-|==|~=|<|>|<=|>=|&&|&|~|\|\|?', Operator),
  3205. # operators requiring escape for re:
  3206. (r'\.\*|\*|\+|\.\^|\^|\.\\|\.\/|\/|\\', Operator),
  3207. # punctuation:
  3208. (r'[\[\](){}@.,=:;]+', Punctuation),
  3209. (r'"[^"]*"', String),
  3210. # quote can be transpose, instead of string:
  3211. # (not great, but handles common cases...)
  3212. (r'(?<=[\w)\].])\'+', Operator),
  3213. (r'(?<![\w)\].])\'', String, 'string'),
  3214. (r'(\d+\.\d*|\d*\.\d+)([eEf][+-]?[0-9]+)?', Number.Float),
  3215. (r'\d+[eEf][+-]?[0-9]+', Number.Float),
  3216. (r'\d+', Number.Integer),
  3217. (r'[a-zA-Z_]\w*', Name),
  3218. (r'\s+', Whitespace),
  3219. (r'.', Text),
  3220. ],
  3221. 'string': [
  3222. (r"[^']*'", String, '#pop'),
  3223. (r'.', String, '#pop'),
  3224. ],
  3225. 'deffunc': _deffunc,
  3226. 'deffunc_args': _deffunc_args,
  3227. }
  3228. # the following is needed to distinguish Scilab and GAP .tst files
  3229. def analyse_text(text):
  3230. score = 0.0
  3231. # Scilab comments (don't appear in e.g. GAP code)
  3232. if re.search(r"^\s*//", text):
  3233. score += 0.1
  3234. if re.search(r"^\s*/\*", text):
  3235. score += 0.1
  3236. return min(score, 1.0)