You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multiline comments seem to have some visual oddities:
When rendering standard multiline comments (/* ... */), any line that does not have a start or end comment marker (/* or */) gets rendered as standard text.
When rendering documentation headers(/** ... **/), every line except the first renders correctly as a comment
These issues are reproducible through the snack demo via the following code:
importReactfrom'react';import{Text,View}from'react-native';importSyntaxHighlighterfrom'react-native-syntax-highlighter';// 2.0.0import{tomorrow}from'react-syntax-highlighter/styles/prism'// 7.0.1constcode=`/* this is the header of this very complicated function it is very important that we keep track of all of this context */function veryImportant() { doSomething();}/** * @description This does something * @params [optionalParam] * @returns A value **/ function doSomething(optionalParam) { console.log("wowza") }`;exportdefaultclassAppextendsReact.Component{constructor(){super();this.state={ code };}render(){return(<Viewstyle={{backgroundColor: '#E87A90',height: '100%'}}><Textstyle={{marginTop: 30,marginBottom: 30,textAlign: 'center',fontSize: 22,fontWeight: '900'}}>React Native Syntax Higlighter</Text><SyntaxHighlighter{...this.props}style={tomorrow}customStyle={{padding: 0,margin: 0}}language='javascript'fontSize={18}highlighter="prism">{this.state.code}</SyntaxHighlighter></View>);}}
The text was updated successfully, but these errors were encountered:
Multiline comments seem to have some visual oddities:
/* ... */
), any line that does not have a start or end comment marker (/*
or*/
) gets rendered as standard text./** ... **/
), every line except the first renders correctly as a commentThese issues are reproducible through the snack demo via the following code:
The text was updated successfully, but these errors were encountered: