matlab.py 130 KB

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