"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/tsx.lang" (12 May 2020, 485 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 dofile(HL_LANG_DIR.."ts.lang")
    3 
    4 Description="TSX (TypeScript with React)"
    5 
    6 Categories = {"script", "javascript"}
    7 
    8 
    9 table.insert(Keywords,
   10   { Id=1,
   11     Regex=[[<[!?]?(?!\-\-)\/?[\w\:\-]+>?|[/?]?>]],
   12     Group=0
   13   }
   14 )
   15 
   16 table.insert(Keywords,
   17   { Id=1,
   18     List={ "from" }
   19   }
   20 )
   21 
   22 table.insert(Keywords,
   23   { Id=2,
   24     Regex=[[([-\w\.\-\:]+)="]],
   25   }
   26 )
   27 
   28 table.insert(Keywords,
   29   {  Id=3,
   30     Regex=[[\{[\w\.]+?\}]],
   31   }
   32 )
   33 
   34 table.insert(Keywords,
   35   {  Id=4,
   36     Regex=[[\&\#?\w+;]],
   37   }
   38 )